blob: 5a54add3482c8734ee965a43a21118f663afd398 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import {Todo} from './todo';
describe('Todo', () => {
it('should create an instance', () => {
expect(new Todo()).toBeTruthy();
});
it('should accept values in the constructor', () => {
let todo = new Todo({
title: 'hello',
complete: true
});
expect(todo.title).toEqual('hello');
expect(todo.complete).toEqual(true);
});
});
|