Skip to content

Commit db55419

Browse files
committed
✅ test: add snapshots
1 parent f399e95 commit db55419

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
coverage
22
node_modules
33
.DS_Store
4-
__snapshots__
54
*.log
65
*.swp
76
*~

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*.swp
44
*.yml
55
coverage
6+
__snapshots__
67
test

test/__snapshots__/index.test.js.snap

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`basic 1`] = `
4+
Array [
5+
"{\\"en\\":{\\"hello\\":\\"hello world!\\"}}",
6+
]
7+
`;
8+
9+
exports[`import 1`] = `
10+
Array [
11+
"{\\"en\\":{\\"hello\\":\\"hello world!\\"}}",
12+
]
13+
`;
14+
15+
exports[`multiple 1`] = `
16+
Array [
17+
"{\\"en\\":{\\"hello\\":\\"hello world!\\"}}",
18+
"{\\"ja\\":{\\"hello\\":\\"こんにちは、世界!\\"}}",
19+
]
20+
`;
21+
22+
exports[`special characters 1`] = `
23+
Array [
24+
"{\\"en\\":{\\"hello\\":\\"hello\\\\ngreat\\\\t\\\\\\"world\\\\\\"\\"}}",
25+
]
26+
`;

0 commit comments

Comments
 (0)