-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.yo-rc.json
19 lines (19 loc) · 826 Bytes
/
.yo-rc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"generator-expect-more": {
"assertion": {
"camelName": "isWithinRange",
"hasArguments": false,
"rawArguments": "floor: number, ceiling: number"
},
"matcher": {
"camelName": "toBeWithinRange",
"description": "Asserts that a value is a `Number` which is both greater than or equal to `floor` and less than or equal to `ceiling`.",
"hasArguments": false,
"rawArguments": "floor: number, ceiling: number",
"example": "expect(6).toBeWithinRange(1, 10);",
"asymmetricExample": "expect(onPress).toHaveBeenCalledWith(expect.toBeWithinRange(1, 10))",
"failMessage": "expected ${received} to be within range ${floor} - ${ceiling} (inclusive)",
"notFailMessage": "expected ${received} not to be within range ${floor} - ${ceiling} (inclusive)"
}
}
}