now fetch the tags from the admin into the nodejs back
This commit is contained in:
parent
807ccc49d4
commit
a6a51caa93
8 changed files with 226 additions and 149 deletions
14
back/tests/ArrayHelperTest.ts
Normal file
14
back/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