Skip to content

Commit

Permalink
test(slide): Add one test
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Dec 8, 2015
1 parent 9856348 commit 6626232
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unit/Slide.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { assert } from 'chai';
import { Cursor } from 'kittik-cursor';
import Text from 'kittik-shape-text';
import { Slide } from '../../src/Slide';

describe('kittik::Slide', () => {
it('Should properly create shapes array in the slide', () => {
let slide = Slide.create([{name: 'Text', options: {text: 'test'}}]);

assert.ok(slide._shapes.every(shape => shape instanceof Text));
});
});

0 comments on commit 6626232

Please sign in to comment.