Skip to content

Commit ff18c5d

Browse files
committed
passing tests
1 parent 4c5f8ab commit ff18c5d

8 files changed

Lines changed: 30 additions & 19 deletions

File tree

tests/format/MemberAccess/__snapshots__/format.test.js.snap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`MemberAccess.sol format 1`] = `
3+
exports[`MemberAccess.sol - {"compiler":"0.6.12"} format 1`] = `
44
====================================options=====================================
5+
compiler: "0.6.12"
56
parsers: ["slang"]
67
printWidth: 80
78
| printWidth
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runFormatTest(import.meta, ['slang']);
1+
runFormatTest(import.meta, ['slang'], { compiler: '0.6.12' });

tests/format/SimpleStorage/__snapshots__/format.test.js.snap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`SimpleStorage.sol format 1`] = `
3+
exports[`SimpleStorage.sol - {"compiler":"0.4.26"} format 1`] = `
44
====================================options=====================================
5+
compiler: "0.4.26"
56
parsers: ["slang"]
67
printWidth: 80
78
| printWidth
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runFormatTest(import.meta, ['slang']);
1+
runFormatTest(import.meta, ['slang'], { compiler: '0.4.26' });

tests/format/StyleGuide/__snapshots__/format.test.js.snap

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`BlankLines.sol format 1`] = `
3+
exports[`BlankLines.sol - {"compiler":"0.5.17"} format 1`] = `
44
====================================options=====================================
5+
compiler: "0.5.17"
56
parsers: ["slang"]
67
printWidth: 80
78
| printWidth
@@ -46,8 +47,9 @@ contract A {
4647
================================================================================
4748
`;
4849

49-
exports[`ControlStructures.sol format 1`] = `
50+
exports[`ControlStructures.sol - {"compiler":"0.5.17"} format 1`] = `
5051
====================================options=====================================
52+
compiler: "0.5.17"
5153
parsers: ["slang"]
5254
printWidth: 80
5355
| printWidth
@@ -167,8 +169,9 @@ contract ControlStructures {
167169
================================================================================
168170
`;
169171

170-
exports[`FunctionDeclaration.sol format 1`] = `
172+
exports[`FunctionDeclaration.sol - {"compiler":"0.5.17"} format 1`] = `
171173
====================================options=====================================
174+
compiler: "0.5.17"
172175
parsers: ["slang"]
173176
printWidth: 80
174177
| printWidth
@@ -458,8 +461,9 @@ contract X is B, C, D {
458461
================================================================================
459462
`;
460463

461-
exports[`Mappings.sol format 1`] = `
464+
exports[`Mappings.sol - {"compiler":"0.5.17"} format 1`] = `
462465
====================================options=====================================
466+
compiler: "0.5.17"
463467
parsers: ["slang"]
464468
printWidth: 80
465469
| printWidth
@@ -487,8 +491,9 @@ contract Mappings {
487491
================================================================================
488492
`;
489493

490-
exports[`MaximumLineLength.sol format 1`] = `
494+
exports[`MaximumLineLength.sol - {"compiler":"0.5.17"} format 1`] = `
491495
====================================options=====================================
496+
compiler: "0.5.17"
492497
parsers: ["slang"]
493498
printWidth: 80
494499
| printWidth
@@ -642,8 +647,9 @@ contract EventDefinitionsAndEventEmitters {
642647
================================================================================
643648
`;
644649

645-
exports[`OtherRecommendations.sol format 1`] = `
650+
exports[`OtherRecommendations.sol - {"compiler":"0.5.17"} format 1`] = `
646651
====================================options=====================================
652+
compiler: "0.5.17"
647653
parsers: ["slang"]
648654
printWidth: 80
649655
| printWidth
@@ -709,8 +715,9 @@ contract OtherRecommendations {
709715
================================================================================
710716
`;
711717

712-
exports[`VariableDeclarations.sol format 1`] = `
718+
exports[`VariableDeclarations.sol - {"compiler":"0.5.17"} format 1`] = `
713719
====================================options=====================================
720+
compiler: "0.5.17"
714721
parsers: ["slang"]
715722
printWidth: 80
716723
| printWidth
@@ -732,8 +739,9 @@ contract VariableDeclarations {
732739
================================================================================
733740
`;
734741

735-
exports[`WhitespaceInExpressions.sol format 1`] = `
742+
exports[`WhitespaceInExpressions.sol - {"compiler":"0.5.17"} format 1`] = `
736743
====================================options=====================================
744+
compiler: "0.5.17"
737745
parsers: ["slang"]
738746
printWidth: 80
739747
| printWidth
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runFormatTest(import.meta, ['slang']);
1+
runFormatTest(import.meta, ['slang'], { compiler: '0.5.17' });

tests/format/strings/__snapshots__/format.test.js.snap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`strings.sol format 1`] = `
3+
exports[`strings.sol - {"compiler":"0.4.26"} format 1`] = `
44
====================================options=====================================
5+
compiler: "0.4.26"
56
parsers: ["slang"]
67
printWidth: 80
78
| printWidth
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runFormatTest(import.meta, ['slang']);
1+
runFormatTest(import.meta, ['slang'], { compiler: '0.4.26' });

0 commit comments

Comments
 (0)