Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Jun 26, 2023
1 parent 1df468c commit 526ba50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test/unit/router-history-base.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ describe('router/history/base', () => {
test('toURL', () => {
const url = history.toURL('guide.md', {}, '/zh-ch/');

expect(url).toEqual('/zh-ch/guide');
expect(url).toBe('/zh-ch/guide');
});

test('toURL with double dot', () => {
const url = history.toURL('../README.md', {}, '/zh-ch/');

expect(url).toEqual('/README');
expect(url).toBe('/README');
});

test('toURL child path', () => {
const url = history.toURL('config/example.md', {}, '/zh-ch/');

expect(url).toEqual('/zh-ch/config/example');
expect(url).toBe('/zh-ch/config/example');
});

test('toURL absolute path', () => {
const url = history.toURL('/README', {}, '/zh-ch/');

expect(url).toEqual('/README');
expect(url).toBe('/README');
});
});

Expand All @@ -63,7 +63,7 @@ describe('router/history/base', () => {
test('toURL', () => {
const url = history.toURL('README', {}, '/zh-ch/');

expect(url).toEqual('/README');
expect(url).toBe('/README');
});
});
});
6 changes: 3 additions & 3 deletions test/unit/router-util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ describe('router/util', () => {
test('resolvePath with filename', () => {
const result = resolvePath('hello.md');

expect(result).toEqual('/hello.md');
expect(result).toBe('/hello.md');
});

test('resolvePath with ./', () => {
const result = resolvePath('./hello.md');

expect(result).toEqual('/hello.md');
expect(result).toBe('/hello.md');
});

test('resolvePath with ../', () => {
const result = resolvePath('test/../hello.md');

expect(result).toEqual('/hello.md');
expect(result).toBe('/hello.md');
});
});
});

0 comments on commit 526ba50

Please sign in to comment.