@@ -18,10 +18,10 @@ const HOME = './tmp';
1818
1919describe ( 'plugin:cache' , function ( ) {
2020 const PROBLEMS = [
21- { id : 0 , name : 'name0' , slug : 'slug0' , starred : false , category : 'algorithms' } ,
22- { id : 1 , name : 'name1' , slug : 'slug1' , starred : true , category : 'algorithms' }
21+ { id : 0 , fid : 0 , name : 'name0' , slug : 'slug0' , starred : false , category : 'algorithms' } ,
22+ { id : 1 , fid : 1 , name : 'name1' , slug : 'slug1' , starred : true , category : 'algorithms' }
2323 ] ;
24- const PROBLEM = { id : 0 , slug : 'slug0' , category : 'algorithms' } ;
24+ const PROBLEM = { id : 0 , fid : 0 , slug : 'slug0' , category : 'algorithms' } ;
2525
2626 const NEXT = { } ;
2727
@@ -125,7 +125,7 @@ describe('plugin:cache', function() {
125125 const ret = plugin . saveProblem ( problem ) ;
126126 assert . equal ( ret , true ) ;
127127 assert . deepEqual ( cache . get ( '0.slug0.algorithms' ) ,
128- { id : 0 , slug : 'slug0' , name : 'name0' , category : 'algorithms' } ) ;
128+ { id : 0 , fid : 0 , slug : 'slug0' , name : 'name0' , category : 'algorithms' } ) ;
129129 } ) ;
130130 } ) ; // #saveProblem
131131
@@ -140,8 +140,8 @@ describe('plugin:cache', function() {
140140 plugin . getProblems ( function ( e , problems ) {
141141 assert . equal ( e , null ) ;
142142 assert . deepEqual ( problems , [
143- { id : 0 , name : 'name0' , slug : 'slug0' , value : 'value00' , starred : false , category : 'algorithms' } ,
144- { id : 1 , name : 'name1' , slug : 'slug1' , starred : true , category : 'algorithms' }
143+ { id : 0 , fid : 0 , name : 'name0' , slug : 'slug0' , value : 'value00' , starred : false , category : 'algorithms' } ,
144+ { id : 1 , fid : 1 , name : 'name1' , slug : 'slug1' , starred : true , category : 'algorithms' }
145145 ] ) ;
146146 done ( ) ;
147147 } ) ;
0 commit comments