Skip to content

Commit 1c71286

Browse files
committed
- format everything
1 parent 476a8c4 commit 1c71286

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ $ npm install
300300
# Verify lint is happy
301301
$ npm run lint -- --fix
302302
303+
# Format
304+
$ npm run format
305+
303306
# Build the typescript and package it for distribution
304307
$ npm run build && npm run package
305308

__tests__/testParser.test.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ describe('parseFile', () => {
242242
annotation_level: 'failure',
243243
status: 'failure',
244244
title: 'test_sample.test_which_fails',
245-
message: 'AssertionError: assert \'test\' == \'xyz\'\n - xyz\n + test',
245+
message: "AssertionError: assert 'test' == 'xyz'\n - xyz\n + test",
246246
raw_details:
247-
'def test_which_fails():\n event = { \'attr\': \'test\'}\n> assert event[\'attr\'] == \'xyz\'\nE AssertionError: assert \'test\' == \'xyz\'\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError'
247+
"def test_which_fails():\n event = { 'attr': 'test'}\n> assert event['attr'] == 'xyz'\nE AssertionError: assert 'test' == 'xyz'\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError"
248248
},
249249
{
250250
path: 'test_results/python/test_sample.py',
@@ -256,9 +256,9 @@ describe('parseFile', () => {
256256
annotation_level: 'failure',
257257
status: 'failure',
258258
title: 'test_sample.test_with_error',
259-
message: 'AttributeError: \'dict\' object has no attribute \'attr\'',
259+
message: "AttributeError: 'dict' object has no attribute 'attr'",
260260
raw_details:
261-
'def test_with_error():\n event = { \'attr\': \'test\'}\n> assert event.attr == \'test\'\nE AttributeError: \'dict\' object has no attribute \'attr\'\n\npython/test_sample.py:14: AttributeError'
261+
"def test_with_error():\n event = { 'attr': 'test'}\n> assert event.attr == 'test'\nE AttributeError: 'dict' object has no attribute 'attr'\n\npython/test_sample.py:14: AttributeError"
262262
}
263263
])
264264
})
@@ -292,9 +292,9 @@ describe('parseFile', () => {
292292
annotation_level: 'failure',
293293
status: 'failure',
294294
title: 'pytest/test_which_fails',
295-
message: 'AssertionError: assert \'test\' == \'xyz\'\n - xyz\n + test',
295+
message: "AssertionError: assert 'test' == 'xyz'\n - xyz\n + test",
296296
raw_details:
297-
'def test_which_fails():\n event = { \'attr\': \'test\'}\n> assert event[\'attr\'] == \'xyz\'\nE AssertionError: assert \'test\' == \'xyz\'\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError'
297+
"def test_which_fails():\n event = { 'attr': 'test'}\n> assert event['attr'] == 'xyz'\nE AssertionError: assert 'test' == 'xyz'\nE - xyz\nE + test\n\npython/test_sample.py:10: AssertionError"
298298
},
299299
{
300300
path: 'subproject/test_results/python/test_sample.py',
@@ -306,9 +306,9 @@ describe('parseFile', () => {
306306
annotation_level: 'failure',
307307
status: 'failure',
308308
title: 'pytest/test_with_error',
309-
message: 'AttributeError: \'dict\' object has no attribute \'attr\'',
309+
message: "AttributeError: 'dict' object has no attribute 'attr'",
310310
raw_details:
311-
'def test_with_error():\n event = { \'attr\': \'test\'}\n> assert event.attr == \'test\'\nE AttributeError: \'dict\' object has no attribute \'attr\'\n\npython/test_sample.py:14: AttributeError'
311+
"def test_with_error():\n event = { 'attr': 'test'}\n> assert event.attr == 'test'\nE AttributeError: 'dict' object has no attribute 'attr'\n\npython/test_sample.py:14: AttributeError"
312312
}
313313
])
314314
})
@@ -426,7 +426,8 @@ describe('parseFile', () => {
426426
true,
427427
false,
428428
undefined,
429-
true)
429+
true
430+
)
430431
expect(testResult).toBeDefined()
431432
const {totalCount, skippedCount, globalAnnotations} = testResult!!
432433
const filtered = globalAnnotations.filter(annotation => annotation.annotation_level !== 'notice')
@@ -438,10 +439,12 @@ describe('parseFile', () => {
438439
annotation_level: 'failure',
439440
end_column: 0,
440441
end_line: 154,
441-
message: 'thread \'test_failure\' panicked at tests/parry3d.rs:154:5:\n' +
442+
message:
443+
"thread 'test_failure' panicked at tests/parry3d.rs:154:5:\n" +
442444
' assertion `left == right` failed: 0 must equal 1',
443445
path: 'tests/parry3d.rs',
444-
raw_details: 'thread \'test_failure\' panicked at tests/parry3d.rs:154:5:\n' +
446+
raw_details:
447+
"thread 'test_failure' panicked at tests/parry3d.rs:154:5:\n" +
445448
' assertion `left == right` failed: 0 must equal 1\n' +
446449
' left: 0\n' +
447450
' right: 1\n' +

0 commit comments

Comments
 (0)