@@ -26,18 +26,18 @@ test('animate', (t) => {
2626 ) ;
2727 const node = findDOMNode ( component ) ;
2828
29- t . same ( node . childNodes . length , 1 ) ;
30- t . same ( node . childNodes [ 0 ] . textContent , 'foo' ) ;
29+ t . deepEqual ( node . childNodes . length , 1 ) ;
30+ t . deepEqual ( node . childNodes [ 0 ] . textContent , 'foo' ) ;
3131
3232 clock . tick ( 100 ) ;
3333
34- t . same ( node . childNodes . length , 1 ) ;
35- t . same ( node . childNodes [ 0 ] . textContent , 'bar' ) ;
34+ t . deepEqual ( node . childNodes . length , 1 ) ;
35+ t . deepEqual ( node . childNodes [ 0 ] . textContent , 'bar' ) ;
3636
3737 clock . tick ( 200 ) ;
3838
39- t . same ( node . childNodes . length , 1 ) ;
40- t . same ( node . childNodes [ 0 ] . textContent , 'baz' ) ;
39+ t . deepEqual ( node . childNodes . length , 1 ) ;
40+ t . deepEqual ( node . childNodes [ 0 ] . textContent , 'baz' ) ;
4141} ) ;
4242
4343test ( 'Keyframes events' , ( t ) => {
@@ -52,11 +52,11 @@ test('Keyframes events', (t) => {
5252 container
5353 ) ;
5454
55- t . ok ( onStart . called ) ;
55+ t . truthy ( onStart . called ) ;
5656 clock . tick ( 100 ) ;
57- t . notOk ( onEnd . called ) ;
57+ t . falsy ( onEnd . called ) ;
5858 clock . tick ( 100 ) ;
59- t . ok ( onEnd . called ) ;
59+ t . truthy ( onEnd . called ) ;
6060} ) ;
6161
6262test ( 'Frame event' , ( t ) => {
@@ -70,9 +70,9 @@ test('Frame event', (t) => {
7070 container
7171 ) ;
7272
73- t . notOk ( onRender . called ) ;
73+ t . falsy ( onRender . called ) ;
7474 clock . tick ( 100 ) ;
75- t . ok ( onRender . called ) ;
75+ t . truthy ( onRender . called ) ;
7676} ) ;
7777
7878test ( 'set component' , ( t ) => {
@@ -85,8 +85,8 @@ test('set component', (t) => {
8585 container
8686 ) ;
8787 const node = findDOMNode ( component ) ;
88- t . same ( node . tagName , 'PRE' ) ;
89- t . same ( node . className , 'woot' ) ;
88+ t . deepEqual ( node . tagName , 'PRE' ) ;
89+ t . deepEqual ( node . className , 'woot' ) ;
9090} ) ;
9191
9292test ( 'Infinite loop' , ( t ) => {
@@ -101,11 +101,11 @@ test('Infinite loop', (t) => {
101101 container
102102 ) ;
103103
104- t . ok ( onStart . called ) ;
104+ t . truthy ( onStart . called ) ;
105105 clock . tick ( 100 ) ;
106- t . notOk ( onEnd . called ) ;
106+ t . falsy ( onEnd . called ) ;
107107 clock . tick ( 200 ) ;
108- t . notOk ( onEnd . called ) ;
108+ t . falsy ( onEnd . called ) ;
109109} ) ;
110110
111111test ( 'Finite loop' , ( t ) => {
@@ -120,11 +120,11 @@ test('Finite loop', (t) => {
120120 container
121121 ) ;
122122
123- t . ok ( onStart . called ) ;
123+ t . truthy ( onStart . called ) ;
124124 clock . tick ( 100 ) ;
125- t . notOk ( onEnd . called ) ;
125+ t . falsy ( onEnd . called ) ;
126126 clock . tick ( 200 ) ;
127- t . notOk ( onEnd . called ) ;
127+ t . falsy ( onEnd . called ) ;
128128 clock . tick ( 300 ) ;
129- t . ok ( onEnd . called ) ;
129+ t . truthy ( onEnd . called ) ;
130130} ) ;
0 commit comments