Skip to content

Commit

Permalink
refactor: rename file and modify decription
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxin630 committed Apr 19, 2020
1 parent 3028a6f commit a5f08eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/url.test.ts → test/utils/url.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { addParam } from '../../utils/url';

describe('utils/url.ts', () => {
test('无参数url', () => {
it('should add ?key=value into url', () => {
const url = 'https://fiora.suisuijiang.com';
const key = 'key';
const value = 'value';
Expand All @@ -11,7 +11,7 @@ describe('utils/url.ts', () => {
expect(addParam(url, params)).toBe(`${url}?${key}=${value}`);
});

test('有参数url', () => {
it('should add &key=value into url', () => {
const url = 'https://fiora.suisuijiang.com?a=a';
const key = 'key';
const value = 'value';
Expand Down

0 comments on commit a5f08eb

Please sign in to comment.