You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have added some custom matchers to ease the testing. You can see the full list at `test/setup.ts`, in
6
+
the `expect.extend` part.
7
+
8
+
*`expect(A).toEqualGraph(B)`: Use this matcher to check whether graphs A and B are equal (meaning containing the
9
+
same set of triples)
10
+
*`expect(A).toContainGraph(B)`: Use this matcher to check whether graph B is contained in graph A
11
+
3
12
## Notes
4
13
5
-
The original code was not written with testing in mind. In order to make testing more efficient you may find it easier to export a function. To do this include the following comment above the function so that it does not get picked up by Typedoc.
14
+
The original code was not written with testing in mind. In order to make testing more efficient you may find it
15
+
easier to export a function. To do this include the following comment above the function so that it does not
16
+
get picked up by Typedoc.
6
17
`@ignore exporting this only for the unit test`
7
18
8
-
There will also be times that even exporting the function isn't enough to enable proper tests to be developed. In this case follow the commenting procedures in the Code Readme.md, which is to add the comment
19
+
There will also be times that even exporting the function isn't enough to enable proper tests to be developed.
20
+
In this case follow the commenting procedures in the Code Readme.md, which is to add the comment
9
21
` \* @@ TODO and desribe the problem.
10
22
11
-
You can reference https://github.com/solid/solid-ui/issues/215 in your TODO comment if the code is hard to test due to DOM manipulation.
23
+
You can reference https://github.com/solid/solid-ui/issues/215 in your TODO comment if the code is hard to
0 commit comments