mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(tests): add test coverage for missed branches in AppBoot
This commit is contained in:
@@ -87,4 +87,14 @@ describe("ParseDefaultFilters()", () => {
|
||||
expect(filters).toContain("foo=bar");
|
||||
expect(filters).toContain("bar=~baz");
|
||||
});
|
||||
|
||||
it("returns [] on filters attr that decodes to an object instead of an array", () => {
|
||||
const filters = FiltersSetting({ foo: "bar" });
|
||||
expect(filters).toHaveLength(0);
|
||||
});
|
||||
|
||||
it("returns [] on filters attr that decodes to a string instead of an array", () => {
|
||||
const filters = FiltersSetting("foo=bar");
|
||||
expect(filters).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user