Skip to content

Commit

Permalink
Update RGB arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Varg committed Nov 27, 2024
1 parent 2a2ac6a commit 4496334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/code.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end
});

test('function argument cant be converted to number', () => {
runTestFile(api, ` x = rgb('123', '65sd', 789) `);
runTestFile(api, ` x = rgb('123', '65sd', 56) `);
expect(error).toHaveBeenCalledWith({

Check failure on line 82 in tests/code.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/code.test.ts > misc code > function argument cant be converted to number

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

Check failure on line 82 in tests/code.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/code.test.ts > misc code > function argument cant be converted to number

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
errorCode: 11,
description: 'Type mismatch!',
Expand Down

0 comments on commit 4496334

Please sign in to comment.