@@ -19,26 +19,6 @@ describe('DatabaseDeltaSnapshot', () => {
1919 } ) ;
2020 } ;
2121
22- it ( 'should allow path to be defined by the payload' , ( ) => {
23- let snap = new DatabaseDeltaSnapshot ( apps , { data : null , delta : 'foo' , path : '/users/foo' } ) ;
24- expect ( snap [ '_path' ] ) . to . equal ( '/users/foo' ) ;
25- } ) ;
26-
27- it ( 'should allow path to be defined by an optional third argument' , ( ) => {
28- let snap = new DatabaseDeltaSnapshot ( apps , { data : null , delta : 'foo' } , '/users/foo' ) ;
29- expect ( snap [ '_path' ] ) . to . equal ( '/users/foo' ) ;
30- } ) ;
31-
32- it ( 'should allow auth to be defined by the payload' , ( ) => {
33- let snap = new DatabaseDeltaSnapshot ( apps , { data : null , delta : 'foo' , path : '/users/foo' , auth : { admin : true } } ) ;
34- expect ( snap [ '_auth' ] ) . to . deep . equal ( { admin : true } ) ;
35- } ) ;
36-
37- it ( 'should allow auth to be defined by an optional fourth argument' , ( ) => {
38- let snap = new DatabaseDeltaSnapshot ( apps , { data : null , delta : 'foo' } , '/users/foo' , { admin : true } ) ;
39- expect ( snap [ '_auth' ] ) . to . deep . equal ( { admin : true } ) ;
40- } ) ;
41-
4222 describe ( '#val(): any' , ( ) => {
4323 it ( 'should return child values based on the child path' , ( ) => {
4424 populate ( { a : { b : 'c' } } , { a : { d : 'e' } } ) ;
0 commit comments