Skip to content

Commit f4ef007

Browse files
committed
Another way to fix Windows
1 parent 2489265 commit f4ef007

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ matrix:
99
os: windows
1010
cache: false
1111
node_js: node
12-
script: git config --global core.autocrlf input && npm t
12+
script: npm t

test/js.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ test('postcss.config.js - {Object} - Process SSS', () => {
6565
return postcss(config.plugins)
6666
.process(fixture('js/object', 'index.sss'), config.options)
6767
.then((result) => {
68-
expect(result.css).toEqual(expected('js/object', 'index.sss'))
68+
expect(result.css.replace(/\r\n/g, '\n')).toEqual(
69+
expected('js/object', 'index.sss')
70+
)
6971
})
7072
})
7173
})
@@ -128,7 +130,9 @@ test('postcss.config.js - {Array} - Process SSS', () => {
128130
return postcss(config.plugins)
129131
.process(fixture('js/array', 'index.sss'), config.options)
130132
.then((result) => {
131-
expect(result.css).toEqual(expected('js/array', 'index.sss'))
133+
expect(result.css.replace(/\r\n/g, '\n')).toEqual(
134+
expected('js/array', 'index.sss')
135+
)
132136
})
133137
})
134138
})

0 commit comments

Comments
 (0)