diff --git a/__tests__/get-os.test.ts b/__tests__/get-os.test.ts index b2e79bb..1614a1c 100644 --- a/__tests__/get-os.test.ts +++ b/__tests__/get-os.test.ts @@ -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'); diff --git a/__tests__/get-url.test.ts b/__tests__/get-url.test.ts index 82a6cbe..4e56a43 100644 --- a/__tests__/get-url.test.ts +++ b/__tests__/get-url.test.ts @@ -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`;