Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 24, 2019
1 parent 00628ae commit d195fff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions core/file-locking/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
name: 'file-locking',
verbose: true,
collectCoverage: true,
coveragePathIgnorePatterns: ['node_modules', '_storage', 'fixtures', 'lib'],
testURL: 'http://localhost',
name: 'file-locking',
verbose: true,
collectCoverage: true,
coveragePathIgnorePatterns: ['node_modules', '_storage', 'fixtures', 'lib'],
testURL: 'http://localhost',
};
8 changes: 4 additions & 4 deletions core/file-locking/src/__tests__/lock.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('testing locking', () => {
test('file should fail to be found to be locked', (done) => {
lockFile(getFilePath('package.fail.json'), (error) => {
expect(error.message).toMatch(
/ENOENT: no such file or directory, stat '(.*)package.fail.json'/
/ENOENT: no such file or directory, stat '(.*)package.fail.json'/
);
done();
});
Expand Down Expand Up @@ -63,7 +63,7 @@ describe('testing locking', () => {
};
readFile(getFilePath('package.fail.json'), options, (error) => {
expect(error.message).toMatch(
/ENOENT: no such file or directory, open '(.*)package.fail.json'/
/ENOENT: no such file or directory, open '(.*)package.fail.json'/
);
done();
});
Expand All @@ -75,7 +75,7 @@ describe('testing locking', () => {
};
readFile(getFilePath('wrong.package.json'), options, (error) => {
expect(error.message).toEqual(
'Unexpected token } in JSON at position 44'
'Unexpected token } in JSON at position 44'
);
done();
});
Expand All @@ -101,7 +101,7 @@ describe('testing locking', () => {
};
readFile(getFilePath('wrong.package.json'), options, (error) => {
expect(error.message).toEqual(
'Unexpected token } in JSON at position 44'
'Unexpected token } in JSON at position 44'
);
removeTempFile('wrong.package.json.lock');
done();
Expand Down

0 comments on commit d195fff

Please sign in to comment.