Skip to content

Commit ae8d6fd

Browse files
😒 chore: Patch tests.
1 parent e4bc105 commit ae8d6fd

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

test/src/DoublyLinkedList.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import test from 'ava';
2+
import * as dll from '../../src';
13

24
test( "DoublyLinkedList" , function ( assert ) {
35

@@ -10,19 +12,19 @@ test( "DoublyLinkedList" , function ( assert ) {
1012

1113
assert.equal( list.length , 4 ) ;
1214

13-
assert.deepEqual( list.erase( b ) , c ) ;
15+
assert.t.deepEqual( list.erase( b ) , c ) ;
1416

1517
assert.equal( list.length , 3 ) ;
1618

17-
assert.deepEqual( list.rerase( c ) , a ) ;
19+
assert.t.deepEqual( list.rerase( c ) , a ) ;
1820

1921
assert.equal( list.length , 2 ) ;
2022

21-
assert.deepEqual( list.erase( a ) , d ) ;
23+
assert.t.deepEqual( list.erase( a ) , d ) ;
2224

2325
assert.equal( list.length , 1 ) ;
2426

25-
assert.deepEqual( list.erase( d ) , list.end( ) ) ;
27+
assert.t.deepEqual( list.erase( d ) , list.end( ) ) ;
2628

2729
assert.equal( list.length , 0 ) ;
2830

test/src/list-spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import test from 'ava';
2+
import * as dll from '../../src';
13

2-
var spec = require( "@aureooms/js-list-spec" ) ;
4+
import spec from "@aureooms/js-list-spec" ;
35
spec.test( "DoublyLinkedList" , dll.DoublyLinkedList ) ;
46

0 commit comments

Comments
 (0)