Add suggestions from review and refactor for compilation target change

This commit is contained in:
Lukas Tetzlaff 2017-11-02 11:16:28 +01:00
parent 0e6b594584
commit b4f70336d5
3 changed files with 19 additions and 22 deletions

View file

@ -39,7 +39,7 @@ const types = new Map<string, Test>([
],['array',
{ is: m.array, fixtures: [[1, 2], new Array(2)] }
],['function',
{ is: m.func, fixtures: [
{ is: m.function_, fixtures: [
function foo() {}, // eslint-disable-line func-names
function () {},
() => {},
@ -411,6 +411,8 @@ test('is.class', t => {
});
test('is.typedArray', t => {
// Typescript currently does not support empty constructors for these
// see https://github.com/Microsoft/TypeScript/issues/19680
const typedArrays = [
new Int8Array(0),
new Uint8Array(0),