Skip to content

Commit

Permalink
test: Rename test name (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jan 7, 2020
1 parent 783aa75 commit ea1428f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions __tests__/get-os.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {getOS} from '../src/get-os';

describe('getOS', () => {
test('test', () => {
describe('getOS()', () => {
test('should return expected OS name', () => {
expect(getOS('linux')).toBe('unknown-linux-gnu');
expect(getOS('darwin')).toBe('apple-darwin');
expect(getOS('win32')).toBe('pc-windows-msvc');
});

test('test exception', () => {
test('should return exception', () => {
expect(() => {
getOS('centos');
}).toThrowError('centos is not supported');
Expand Down
2 changes: 1 addition & 1 deletion __tests__/get-url.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {getURL} from '../src/get-url';

describe('getURL()', () => {
test('test', () => {
test('should return extected URL', () => {
const testVersion: string = '0.3.5';
const baseURL: string = `https://github.com/rust-lang/mdBook/releases/download/v${testVersion}/mdbook-v${testVersion}-x86_64`;
const urlLinux: string = `${baseURL}-unknown-linux-gnu.tar.gz`;
Expand Down

0 comments on commit ea1428f

Please sign in to comment.