Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
逍为 committed Apr 25, 2021
1 parent 384bc6f commit 4cd6ab3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 26 deletions.
4 changes: 1 addition & 3 deletions __tests__/unit/geometry/attribute/color-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
Color,
} from '../../../../src/geometry/attribute';
import { Color } from '../../../../src/geometry/attribute';

describe('attribute color', () => {
it('value', () => {
Expand Down
16 changes: 2 additions & 14 deletions __tests__/unit/geometry/attribute/index-spec.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
import {
Attribute,
Color,
Position,
Shape,
Size,
} from '../../../../src/geometry/attribute';
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);
expect([Attribute, Color, Position, Shape, Size].every((e) => !!e)).toBe(true);
});
});

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

describe('attribute position', () => {
it('value', () => {
Expand Down
4 changes: 1 addition & 3 deletions __tests__/unit/geometry/attribute/shape-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
Shape,
} from '../../../../src/geometry/attribute';
import { Shape } from '../../../../src/geometry/attribute';

describe('attribute shape', () => {
it('value', () => {
Expand Down
4 changes: 1 addition & 3 deletions __tests__/unit/geometry/attribute/size-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
Size,
} from '../../../../src/geometry/attribute';
import { Size } from '../../../../src/geometry/attribute';

describe('attribute color', () => {
it('value', () => {
Expand Down

0 comments on commit 4cd6ab3

Please sign in to comment.