mirror of https://github.com/zulip/zulip.git
lazy set: Increase code coverage.
This was pvreviously covered by tests for the buddy list. We shouldn't rely on other code to complete code coverage for this module. In the future it would be good to add more tests to the lazy set tests to directly cover lazy set functionality.
This commit is contained in:
parent
e2a6d0f4b2
commit
beead8e614
|
@ -23,6 +23,14 @@ run_test("map", () => {
|
|||
);
|
||||
});
|
||||
|
||||
run_test("size", () => {
|
||||
const ls = new LazySet([1, 2]);
|
||||
assert.deepEqual(ls.size, 2);
|
||||
|
||||
ls._make_set();
|
||||
assert.deepEqual(ls.size, 2);
|
||||
});
|
||||
|
||||
run_test("conversions", () => {
|
||||
blueslip.expect("error", "not a number", 2);
|
||||
const ls = new LazySet([1, 2]);
|
||||
|
|
Loading…
Reference in New Issue