@@ -76,6 +76,7 @@ for (const store in stores) {
7676 let store : Store ;
7777 const expected = {
7878 bip : {
79+ bling : false ,
7980 bop : {
8081 blip : "something, something!" ,
8182 blergh : "don't panic!" ,
@@ -93,6 +94,7 @@ for (const store in stores) {
9394 before ( async function ( ) {
9495 ! isUndefined ( currentStore . before ) && await currentStore . before ( ) ;
9596 store = currentStore . initializeStore ( ) ;
97+ await store . update ( [ "bip" , "bling" ] , ( ) => false ) ;
9698 await store . update ( [ "bip" , "bop" , "blip" ] , ( ) => "something, something!" ) ;
9799 await store . update ( [ "bip" , "bop" , "blergh" ] , ( ) => "don't panic!" ) ;
98100 await store . update ( [ "bip" , "bop" , "burp" ] , ( ) => "you are doing great!" ) ;
@@ -116,7 +118,7 @@ for (const store in stores) {
116118 const value = await store . get ( [ "bip" , "bop" , "inexistent" ] ) ;
117119 assert . strictEqual ( value , undefined ) ;
118120 } ) ;
119-
121+
120122 it ( "Attempting to get an index that contains an object works" , async function ( ) {
121123 const value = await store . get ( [ "bip" , "bok" ] ) ;
122124 assert . deepStrictEqual ( value , expected [ "bip" ] [ "bok" ] ) ;
@@ -126,6 +128,11 @@ for (const store in stores) {
126128 const value = await store . get ( [ "bump" ] ) ;
127129 assert . deepStrictEqual ( value , expected [ "bump" ] ) ;
128130 } ) ;
131+
132+ it ( "Attempting to get an index that contains a boolean works" , async function ( ) {
133+ const value = await store . get ( [ "bip" , "bling" ] ) ;
134+ assert . strictEqual ( value , expected [ "bip" ] [ "bling" ] ) ;
135+ } ) ;
129136 } ) ;
130137
131138 describe ( "update" , function ( ) {
0 commit comments