(text1: string, text2: string, expected: boolean = true)
| 147 | |
| 148 | describe("isEquals", () => { |
| 149 | function expectIsEquals(text1: string, text2: string, expected: boolean = true) { |
| 150 | const tree1 = parseJSON(text1); |
| 151 | const tree2 = parseJSON(text2); |
| 152 | expect(tree1.hasError()).toEqual(false); |
| 153 | expect(tree2.hasError()).toEqual(false); |
| 154 | expect(isEquals(tree1, tree2)).toEqual(expected); |
| 155 | } |
| 156 | |
| 157 | test("object", () => { |
| 158 | expectIsEquals( |
no test coverage detected