fix: jest/valid-title

This commit is contained in:
peaceiris 2020-10-12 15:21:14 +09:00
parent 02ad104b13
commit 9fa85c5525
No known key found for this signature in database
GPG key ID: 5868468A8EBA64EC
2 changed files with 3 additions and 3 deletions

View file

@ -1,13 +1,13 @@
import getOS from '../src/get-os'; import getOS from '../src/get-os';
describe('getOS', () => { describe('getOS', () => {
test('test', () => { test('os type', () => {
expect(getOS('linux')).toBe('Linux'); expect(getOS('linux')).toBe('Linux');
expect(getOS('darwin')).toBe('macOS'); expect(getOS('darwin')).toBe('macOS');
expect(getOS('win32')).toBe('Windows'); expect(getOS('win32')).toBe('Windows');
}); });
test('test exception', () => { test('exception', () => {
expect(() => { expect(() => {
getOS('centos'); getOS('centos');
}).toThrowError('centos is not supported'); }).toThrowError('centos is not supported');

View file

@ -1,7 +1,7 @@
import getURL from '../src/get-url'; import getURL from '../src/get-url';
describe('getURL()', () => { describe('getURL()', () => {
test('test', () => { test('get a URL to an asset for each platform', () => {
const baseURL = 'https://github.com/gohugoio/hugo/releases/download/v0.58.2'; const baseURL = 'https://github.com/gohugoio/hugo/releases/download/v0.58.2';
const urlLinux = `${baseURL}/hugo_0.58.2_Linux-64bit.tar.gz`; const urlLinux = `${baseURL}/hugo_0.58.2_Linux-64bit.tar.gz`;
const urlLinuxExtended = `${baseURL}/hugo_extended_0.58.2_Linux-64bit.tar.gz`; const urlLinuxExtended = `${baseURL}/hugo_extended_0.58.2_Linux-64bit.tar.gz`;