Skip to content

Commit e080450

Browse files
authored
1 test 1 folder (#42)
1 parent 3a3cad8 commit e080450

File tree

11 files changed

+90
-86
lines changed

11 files changed

+90
-86
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 mattia richetto
3+
Copyright (c) 2018 prettier-solidity
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ node_modules/.bin/prettier --write **/*.sol --plugin=./node_modules/prettier-plu
2121
## Install
2222

2323
```bash
24-
npm install mattiaerre/prettier-plugin-solidity
24+
npm install prettier-solidity/prettier-plugin-solidity
2525
```
File renamed without changes.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Inbox.sol 1`] = `
4+
// This comment spans one line
5+
6+
/*
7+
This
8+
comment
9+
spans
10+
multiple
11+
lines.
12+
*/
13+
14+
pragma solidity ^0.4.23;
15+
contract Inbox {
16+
string public message;
17+
18+
constructor(string initialMessage) public {
19+
message = initialMessage;
20+
}
21+
22+
function setMessage(string newMessage) public {
23+
message = newMessage;
24+
}
25+
}
26+
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
// This comment spans one line
29+
30+
/*
31+
This
32+
comment
33+
spans
34+
multiple
35+
lines.
36+
*/
37+
38+
pragma solidity ^0.4.23;
39+
40+
contract Inbox {
41+
string public message;
42+
43+
constructor(string initialMessage) public {
44+
message = initialMessage;
45+
}
46+
47+
function setMessage(string newMessage) public {
48+
message = newMessage;
49+
}
50+
}
51+
52+
`;
File renamed without changes.
File renamed without changes.

tests/__snapshots__/jsfmt.spec.js.snap renamed to tests/Ownable/__snapshots__/jsfmt.spec.js.snap

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Inbox.sol 1`] = `
4-
// This comment spans one line
5-
6-
/*
7-
This
8-
comment
9-
spans
10-
multiple
11-
lines.
12-
*/
13-
14-
pragma solidity ^0.4.23;
15-
contract Inbox {
16-
string public message;
17-
18-
constructor(string initialMessage) public {
19-
message = initialMessage;
20-
}
21-
22-
function setMessage(string newMessage) public {
23-
message = newMessage;
24-
}
25-
}
26-
27-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28-
// This comment spans one line
29-
30-
/*
31-
This
32-
comment
33-
spans
34-
multiple
35-
lines.
36-
*/
37-
38-
pragma solidity ^0.4.23;
39-
40-
contract Inbox {
41-
string public message;
42-
43-
constructor(string initialMessage) public {
44-
message = initialMessage;
45-
}
46-
47-
function setMessage(string newMessage) public {
48-
message = newMessage;
49-
}
50-
}
51-
52-
`;
53-
543
exports[`Ownable.sol 1`] = `
554
pragma solidity ^0.4.24;
565
@@ -203,36 +152,3 @@ contract Ownable {
203152
}
204153
205154
`;
206-
207-
exports[`SimpleStorage.sol 1`] = `
208-
pragma solidity ^0.4.0;
209-
210-
contract SimpleStorage {
211-
string public name = "SimpleStorage";
212-
uint storedData;
213-
214-
function set(uint x) public {
215-
storedData = x;
216-
}
217-
218-
function get() public view returns (uint) {
219-
return storedData;
220-
}
221-
}
222-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
223-
pragma solidity ^0.4.0;
224-
225-
contract SimpleStorage {
226-
string public name = "SimpleStorage";
227-
uint storedData;
228-
229-
function set(uint x) public {
230-
storedData = x;
231-
}
232-
233-
function get() public view returns(uint) {
234-
return storedData;
235-
}
236-
}
237-
238-
`;

tests/Ownable/jsfmt.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run_spec(__dirname);
File renamed without changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`SimpleStorage.sol 1`] = `
4+
pragma solidity ^0.4.0;
5+
6+
contract SimpleStorage {
7+
string public name = "SimpleStorage";
8+
uint storedData;
9+
10+
function set(uint x) public {
11+
storedData = x;
12+
}
13+
14+
function get() public view returns (uint) {
15+
return storedData;
16+
}
17+
}
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
pragma solidity ^0.4.0;
20+
21+
contract SimpleStorage {
22+
string public name = "SimpleStorage";
23+
uint storedData;
24+
25+
function set(uint x) public {
26+
storedData = x;
27+
}
28+
29+
function get() public view returns(uint) {
30+
return storedData;
31+
}
32+
}
33+
34+
`;

0 commit comments

Comments
 (0)