mirror of https://github.com/lukechilds/ow.git
31 changed files with 34 additions and 30 deletions
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
import {createAnyError} from './fixtures/create-error'; |
|||
|
|||
test('any', t => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('arrayBuffer', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('array', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('boolean', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('buffer', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('dataView', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('date', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
class CustomError extends Error { |
|||
constructor(message: string) { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('function', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
import {createAnyError} from './fixtures/create-error'; |
|||
|
|||
test('infer label', t => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('iterable', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('map', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('nan', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('nullOrUndefined', t => { |
|||
// tslint:disable-next-line no-null-keyword
|
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('null', t => { |
|||
// tslint:disable-next-line no-null-keyword
|
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('number', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
class Unicorn {} // tslint:disable-line
|
|||
|
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('optional', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('promise', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('regExp', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('set', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('string', t => { |
|||
const bar: any = 12; |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('symbol', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
import {createAnyError} from './fixtures/create-error'; |
|||
|
|||
test('not', t => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('typedArray', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('undefined', t => { |
|||
const x = undefined; |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
test('weakMap', t => { |
|||
t.notThrows(() => { |
@ -1,5 +1,5 @@ |
|||
import test from 'ava'; |
|||
import ow from '..'; |
|||
import ow from '../source'; |
|||
|
|||
const unicorn = {unicorn: '🦄'}; |
|||
const rainbow = {rainbow: '🌈'}; |
Loading…
Reference in new issue