Skip to content

Commit

Permalink
Merge pull request #446 from Turbo87/windows-ci
Browse files Browse the repository at this point in the history
CI: Run main test suite on Windows too
  • Loading branch information
Turbo87 authored Nov 25, 2019
2 parents 3e818ec + 5ba4a4a commit 2944614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
node-version: [8.x, 10.x, 12.x]

steps:
Expand Down
6 changes: 3 additions & 3 deletions node-tests/strip-data-test-properties-plugin-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function testFixture(name) {
let fixturePath = `${__dirname}/fixtures/${name}/fixture.js`;
let expectedPath = `${__dirname}/fixtures/${name}/expected.js`;

let expected = fs.readFileSync(expectedPath).toString();
let expected = fs.readFileSync(expectedPath, 'utf8').replace(/\r\n/g, '\n');
let result = babel5.transformFileSync(fixturePath, {
plugins: [StripDataTestPropertiesPlugin5],
});
Expand All @@ -26,7 +26,7 @@ function testFixture(name) {
let fixturePath = `${__dirname}/fixtures/${name}/fixture.js`;
let expectedPath = `${__dirname}/fixtures/${name}/expected6.js`;

let expected = fs.readFileSync(expectedPath).toString();
let expected = fs.readFileSync(expectedPath, 'utf8').replace(/\r\n/g, '\n');

let result = babel6.transformFileSync(fixturePath, {
plugins: [StripDataTestPropertiesPlugin6],
Expand All @@ -39,7 +39,7 @@ function testFixture(name) {
let fixturePath = `${__dirname}/fixtures/${name}/fixture.js`;
let expectedPath = `${__dirname}/fixtures/${name}/expected7.js`;

let expected = fs.readFileSync(expectedPath).toString();
let expected = fs.readFileSync(expectedPath, 'utf8').replace(/\r\n/g, '\n');

let result = babel7.transformFileSync(fixturePath, {
plugins: [StripDataTestPropertiesPlugin6],
Expand Down

0 comments on commit 2944614

Please sign in to comment.