Skip to content

Commit

Permalink
chore: update tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryGogonis committed May 20, 2017
1 parent b52c4bf commit ff8d877
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import Matrix from '../src/index.js'
import { Map, isImmutable } from 'immutable'
import { Map } from 'immutable'
const { describe, it, expect } = global

const mockMatrix = new Matrix(1, 2, 3, 4, 5, 6)

describe('constructor', () => {
it('should extend an Immutable Map', () => {
const matrix = mockMatrix
expect(matrix instanceof Map).toBe(true)
})

it('should create an identity Matrix', () => {
const matrix = new Matrix()
expect(matrix.get('a')).toBe(1)
Expand All @@ -24,12 +29,6 @@ describe('constructor', () => {
expect(matrix.get('e')).toBe(5)
expect(matrix.get('f')).toBe(6)
})

it('should implement Immutable', () => {
const matrix = mockMatrix
expect(isImmutable(matrix)).toBe(true)
console.log(matrix instanceof Map)
})
})

describe('scale', () => {
Expand Down

0 comments on commit ff8d877

Please sign in to comment.