Adding a Pusher container as a middleware/dispatcher between front and back
This commit is contained in:
parent
6c6d046891
commit
4c1e566a6c
86 changed files with 12172 additions and 983 deletions
14
pusher/tests/ArrayHelperTest.ts
Normal file
14
pusher/tests/ArrayHelperTest.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import {arrayIntersect} from "../src/Services/ArrayHelper";
|
||||
|
||||
|
||||
describe("RoomIdentifier", () => {
|
||||
it("should return true on intersect", () => {
|
||||
expect(arrayIntersect(['admin', 'user'], ['admin', 'superAdmin'])).toBe(true);
|
||||
});
|
||||
it("should be reflexive", () => {
|
||||
expect(arrayIntersect(['admin', 'superAdmin'], ['admin', 'user'])).toBe(true);
|
||||
});
|
||||
it("should return false on non intersect", () => {
|
||||
expect(arrayIntersect(['admin', 'user'], ['superAdmin'])).toBe(false);
|
||||
});
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue