Skip to content

Commit 313bf25

Browse files
authored
Merge pull request #325 from Inkrementator/list_all_assertions
List all custom assertions in submodule readme
2 parents cc89242 + e5f2dec commit 313bf25

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

subpackages/assertions/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
This module contains the following assertions:
2+
3+
- shouldBeTrue
4+
- shouldBeFalse
5+
- shouldEqual
6+
- shouldNotEqual
7+
- shouldBeNull
8+
- shouldNotBeNull
9+
- shouldBeIn
10+
- shouldNotBeIn
11+
- shouldThrow
12+
- shouldThrowExactly
13+
- shouldNotThrow
14+
- shouldThrowWithMessage
15+
- shouldApproxEqual
16+
- shouldBeEmpty
17+
- shouldNotBeEmpty
18+
- shouldBeGreaterThan
19+
- shouldBeSmallerThan
20+
- shouldBeSameSetAs
21+
- shouldNotBeSameSetAs
22+
- shouldBeSameJsonAs
23+
- shouldBeBetween
24+
- shouldApprox
25+
26+
It also contains the `should` -testing DSL. I.e.:
27+
```
28+
1.should == 1;
29+
1.should.not == 2;
30+
1.should in [1, 2, 3];
31+
4.should.not in [1, 2, 3];
32+
```

0 commit comments

Comments
 (0)