Skip to content

Commit

Permalink
Removed posix from resolve utils tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Winterbottom committed Oct 22, 2018
1 parent b320c41 commit 9edfc3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/resolve.utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ describe('Resolve Utils Test', () => {
describe('resolve', () => {

test('should resolve to `src` as the base when no relative path is provided', () => {
let base = path.posix.basename(resolve());
let base = path.basename(resolve());
expect(base).toEqual('src');
});

test('should resolve to a path relative to the base', () => {
let relative_path = 'scooby/doo';
let diff = path.posix.relative(resolve(''), resolve(relative_path));
let diff = path.relative(resolve(''), resolve(relative_path));
expect(diff).toEqual(relative_path);
});

Expand Down

0 comments on commit 9edfc3c

Please sign in to comment.