Convert CallingHeader texts to toasts

This commit is contained in:
trevor-signal 2023-11-14 17:05:17 -05:00 committed by GitHub
parent f180f66e77
commit 292ef1b6f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 268 additions and 270 deletions

View file

@ -3,7 +3,7 @@
import { assert } from 'chai';
import { isEqual, remove, toggle } from '../../util/setUtil';
import { difference, isEqual, remove, toggle } from '../../util/setUtil';
describe('set utilities', () => {
const original = new Set([1, 2, 3]);
@ -82,4 +82,21 @@ describe('set utilities', () => {
assert.deepStrictEqual(original, new Set([1, 2, 3]));
});
});
describe('difference', () => {
it('returns the difference of two sets', () => {
assert.deepStrictEqual(
difference(new Set(['a', 'b', 'c']), new Set(['a', 'b', 'c'])),
new Set()
);
assert.deepStrictEqual(
difference(new Set(['a', 'b', 'c']), new Set([])),
new Set(['a', 'b', 'c'])
);
assert.deepStrictEqual(
difference(new Set(['a', 'b', 'c']), new Set(['d'])),
new Set(['a', 'b', 'c'])
);
});
});
});