Skip to content

Commit 526ba50

Browse files
committed
lint
1 parent 1df468c commit 526ba50

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/unit/router-history-base.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ describe('router/history/base', () => {
2727
test('toURL', () => {
2828
const url = history.toURL('guide.md', {}, '/zh-ch/');
2929

30-
expect(url).toEqual('/zh-ch/guide');
30+
expect(url).toBe('/zh-ch/guide');
3131
});
3232

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

36-
expect(url).toEqual('/README');
36+
expect(url).toBe('/README');
3737
});
3838

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

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

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

48-
expect(url).toEqual('/README');
48+
expect(url).toBe('/README');
4949
});
5050
});
5151

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

66-
expect(url).toEqual('/README');
66+
expect(url).toBe('/README');
6767
});
6868
});
6969
});

test/unit/router-util.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ describe('router/util', () => {
99
test('resolvePath with filename', () => {
1010
const result = resolvePath('hello.md');
1111

12-
expect(result).toEqual('/hello.md');
12+
expect(result).toBe('/hello.md');
1313
});
1414

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

18-
expect(result).toEqual('/hello.md');
18+
expect(result).toBe('/hello.md');
1919
});
2020

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

24-
expect(result).toEqual('/hello.md');
24+
expect(result).toBe('/hello.md');
2525
});
2626
});
2727
});

0 commit comments

Comments
 (0)