Add extra tests to check type conversion #62
Annotations
3 errors
tests/code.test.ts > misc code > function argument cant be converted to number:
tests/code.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { errorCode: 11, …(6) } ]
Received:
1st spy call:
Array [
Object {
"actionIndex": -1,
"description": "Type mismatch!",
"errorCode": 11,
"line": 1,
- "lineSrc": "X = RGB('123', '65sd', 789)",
+ "lineSrc": "X = RGB('123', '65sd', 56)",
"localLine": 1,
"location": "test",
},
]
Number of calls: 1
❯ tests/code.test.ts:82:19
|
tests/code.test.ts > misc code > function argument cant be converted to number:
tests/code.test.ts#L15
AssertionError: expected "spy" to not be called at all, but actually been called 1 times
Received:
1st spy call:
Array [
Object {
"actionIndex": -1,
"description": "Type mismatch!",
"errorCode": 11,
"line": 1,
"lineSrc": "X = RGB('123', '65sd', 56)",
"localLine": 1,
"location": "test",
},
]
Number of calls: 1
❯ tests/code.test.ts:15:23
|
test
Process completed with exit code 1.
|