Skip to content

Commit 0efd200

Browse files
committed
README: add function reference
From strongloop-archive/loopback-testing#44
1 parent d1a903d commit 0efd200

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,56 @@ new TestDataBuilder()
110110
// context.notification
111111
});
112112
```
113+
114+
## Function reference
115+
116+
LoopBack Testing (lt):
117+
===
118+
119+
* `describe`
120+
* `it`
121+
* `beforeEach`
122+
* `TestDataBuilder`
123+
124+
`lt.describe`:
125+
----
126+
127+
* `staticMethod`
128+
* `instanceMethod`
129+
* `whenCalledRemotely`
130+
* `whenLoggedInAsUser`
131+
* `whenLoggedInAsUserWithRole`
132+
* `whenCalledByUser`
133+
* `whenCalledByUserWithRole`
134+
* `whenCalledAnonymously`
135+
* `whenCalledUnauthenticated`
136+
137+
`lt.it`:
138+
----
139+
140+
* `shouldBeAllowed`
141+
* `shouldBeDenied`
142+
* `shouldNotBeFound`
143+
* `shouldBeForbidden`
144+
* `shouldBeRejected`
145+
* `shouldBeAllowedWhenCalledAnonymously`
146+
* `shouldBeDeniedWhenCalledAnonymously`
147+
* `shouldBeAllowedWhenCalledUnauthenticated`
148+
* `shouldBeDeniedWhenCalledUnauthenticated`
149+
* `shouldBeAllowedWhenCalledByUser`
150+
* `shouldBeDeniedWhenCalledByUser`
151+
* `shouldBeAllowedWhenCalledByUserWithRole`
152+
* `shouldBeDeniedWhenCalledByUserWithRole`
153+
154+
`lt.beforeEach`:
155+
----
156+
157+
* `withApp`
158+
* `withArgs`
159+
* `givenModel`
160+
* `givenUser`
161+
* `givenUserWithRole`
162+
* `givenLoggedInUser`
163+
* `givenLoggedInUserWithRole`
164+
* `givenAnUnauthenticatedToken`
165+
* `givenAnAnonymousToken`

0 commit comments

Comments
 (0)