Skip to content

Commit

Permalink
test(attribute): add testcase file for attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
閫嶄负 committed Apr 25, 2021
1 parent b79872f commit 384bc6f
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
13 changes: 13 additions & 0 deletions __tests__/unit/geometry/attribute/color-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
Color,
} from '../../../../src/geometry/attribute';

describe('attribute color', () => {
it('value', () => {
expect(Color).toBeDefined();
});

it('callback', () => {
expect(Color).toBeDefined();
});
});
20 changes: 20 additions & 0 deletions __tests__/unit/geometry/attribute/index-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {
Attribute,
Color,
Position,
Shape,
Size,
} from '../../../../src/geometry/attribute';

// TODO 鍗曟祴 100%
describe('attribute', () => {
it('export', () => {
expect([Attribute,
Color,
Position,
Shape,
Size,
].every(e => !!e)).toBe(true);
});
});

13 changes: 13 additions & 0 deletions __tests__/unit/geometry/attribute/position-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
Position,
} from '../../../../src/geometry/attribute';

describe('attribute position', () => {
it('value', () => {
expect(Position).toBeDefined();
});

it('callback', () => {
expect(Position).toBeDefined();
});
});
13 changes: 13 additions & 0 deletions __tests__/unit/geometry/attribute/shape-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
Shape,
} from '../../../../src/geometry/attribute';

describe('attribute shape', () => {
it('value', () => {
expect(Shape).toBeDefined();
});

it('callback', () => {
expect(Shape).toBeDefined();
});
});
13 changes: 13 additions & 0 deletions __tests__/unit/geometry/attribute/size-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
Size,
} from '../../../../src/geometry/attribute';

describe('attribute color', () => {
it('value', () => {
expect(Size).toBeDefined();
});

it('callback', () => {
expect(Size).toBeDefined();
});
});

0 comments on commit 384bc6f

Please sign in to comment.