Skip to content

Commit 5307872

Browse files
committed
test: add theme test case.
1 parent 8cc7ab1 commit 5307872

File tree

9 files changed

+296
-0
lines changed

9 files changed

+296
-0
lines changed

core/src/theme/basic.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { basicTheme } from './basic';
2+
3+
it('basicTheme test case', () => {
4+
expect(basicTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(basicTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/dark.test.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { darkTheme } from './dark';
2+
3+
it('darkTheme test case', () => {
4+
expect(darkTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(darkTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-brackets-color',
19+
'--w-rjv-quotes-color',
20+
'--w-rjv-quotes-string-color',
21+
'--w-rjv-type-string-color',
22+
'--w-rjv-type-int-color',
23+
'--w-rjv-type-float-color',
24+
'--w-rjv-type-bigint-color',
25+
'--w-rjv-type-boolean-color',
26+
'--w-rjv-type-date-color',
27+
'--w-rjv-type-url-color',
28+
'--w-rjv-type-null-color',
29+
'--w-rjv-type-nan-color',
30+
'--w-rjv-type-undefined-color',
31+
]);
32+
});

core/src/theme/github.dark.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { githubDarkTheme } from './github.dark';
2+
3+
it('githubDarkTheme test case', () => {
4+
expect(githubDarkTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(githubDarkTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/github.light.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { githubLightTheme } from './github.light';
2+
3+
it('githubLightTheme test case', () => {
4+
expect(githubLightTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(githubLightTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/gruvbox.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { gruvboxTheme } from './gruvbox';
2+
3+
it('gruvboxTheme test case', () => {
4+
expect(gruvboxTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(gruvboxTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/light.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { lightTheme } from './light';
2+
3+
it('lightTheme test case', () => {
4+
expect(lightTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(lightTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/monokai.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { monokaiTheme } from './monokai';
2+
3+
it('monokaiTheme test case', () => {
4+
expect(monokaiTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(monokaiTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/nord.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { nordTheme } from './nord';
2+
3+
it('nordTheme test case', () => {
4+
expect(nordTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(nordTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

core/src/theme/vscode.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { vscodeTheme } from './vscode';
2+
3+
it('vscodeTheme test case', () => {
4+
expect(vscodeTheme).toHaveProperty('--w-rjv-font-family', 'monospace');
5+
expect(Object.keys(vscodeTheme)).toMatchObject([
6+
'--w-rjv-font-family',
7+
'--w-rjv-color',
8+
'--w-rjv-key-string',
9+
'--w-rjv-background-color',
10+
'--w-rjv-line-color',
11+
'--w-rjv-arrow-color',
12+
'--w-rjv-edit-color',
13+
'--w-rjv-info-color',
14+
'--w-rjv-update-color',
15+
'--w-rjv-copied-color',
16+
'--w-rjv-copied-success-color',
17+
'--w-rjv-curlybraces-color',
18+
'--w-rjv-colon-color',
19+
'--w-rjv-brackets-color',
20+
'--w-rjv-quotes-color',
21+
'--w-rjv-quotes-string-color',
22+
'--w-rjv-type-string-color',
23+
'--w-rjv-type-int-color',
24+
'--w-rjv-type-float-color',
25+
'--w-rjv-type-bigint-color',
26+
'--w-rjv-type-boolean-color',
27+
'--w-rjv-type-date-color',
28+
'--w-rjv-type-url-color',
29+
'--w-rjv-type-null-color',
30+
'--w-rjv-type-nan-color',
31+
'--w-rjv-type-undefined-color',
32+
]);
33+
});

0 commit comments

Comments
 (0)