Page MenuHomec4science

matrix.spec.ts
No OneTemporary

File Metadata

Created
Tue, Sep 10, 02:23

matrix.spec.ts

import { Component, Input, DebugElement, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { Matrix } from './matrix';
describe('Matrix', () => {
it('should create the Object', ()=>{
expect(new Matrix('rotation(90)')).toBeTruthy();
});
it('should create the Object', ()=>{
let matrix = new Matrix('matrix(1 0 0 1 0 0)', 1.5)
//console.log(matrix.toString());
expect(matrix.toString()).toEqual('matrix(1 0 0 1 -210 -210)');
});
});

Event Timeline