-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.test.js
51 lines (41 loc) · 1.45 KB
/
index.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const { convertFile } = require('.');
test('converts asterisk', () => {
let svgResult = convertFile('./testdata/asterisk.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts bed', () => {
let svgResult = convertFile('./testdata/bed.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts like', () => {
let svgResult = convertFile('./testdata/like.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts shapes', () => {
let svgResult = convertFile('./testdata/shapes.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts layers', () => {
let svgResult = convertFile('./testdata/layers.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts strokes', () => {
let svgResult = convertFile('./testdata/strokes.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts lines', () => {
let svgResult = convertFile('./testdata/lines.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts stroke-pos', () => {
let svgResult = convertFile('./testdata/stroke-pos.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts dashes', () => {
let svgResult = convertFile('./testdata/dashes.psd').toString();
expect(svgResult).toMatchSnapshot();
});
test('converts special-name', () => {
let svgResult = convertFile('./testdata/special-name.psd').toString();
expect(svgResult).toMatchSnapshot();
});