@@ -893,24 +893,24 @@ Deno.test(
893
893
} ) ,
894
894
) ;
895
895
896
- Deno . test ( "assertInlineSnapshot()" , ( t ) => {
897
- assertInlineSnapshot (
896
+ Deno . test ( "assertInlineSnapshot()" , async ( t ) => {
897
+ await assertInlineSnapshot (
898
898
t ,
899
899
{ a : 1 , b : 2 } ,
900
900
`{
901
901
a: 1,
902
902
b: 2,
903
903
}` ,
904
904
) ;
905
- assertInlineSnapshot (
905
+ await assertInlineSnapshot (
906
906
t ,
907
907
new TestClass ( ) ,
908
908
`TestClass {
909
909
a: 1,
910
910
b: 2,
911
911
}` ,
912
912
) ;
913
- assertInlineSnapshot (
913
+ await assertInlineSnapshot (
914
914
t ,
915
915
map ,
916
916
`Map(3) {
@@ -919,7 +919,7 @@ Deno.test("assertInlineSnapshot()", (t) => {
919
919
[Function (anonymous)] => "World!",
920
920
}` ,
921
921
) ;
922
- assertInlineSnapshot (
922
+ await assertInlineSnapshot (
923
923
t ,
924
924
new Set ( [ 1 , 2 , 3 ] ) ,
925
925
`Set(3) {
@@ -928,15 +928,15 @@ Deno.test("assertInlineSnapshot()", (t) => {
928
928
3,
929
929
}` ,
930
930
) ;
931
- assertInlineSnapshot (
931
+ await assertInlineSnapshot (
932
932
t ,
933
933
{ fn ( ) { } } ,
934
934
`{
935
935
fn: [Function: fn],
936
936
}` ,
937
937
) ;
938
- assertInlineSnapshot ( t , function fn ( ) { } , `[Function: fn]` ) ;
939
- assertInlineSnapshot (
938
+ await assertInlineSnapshot ( t , function fn ( ) { } , `[Function: fn]` ) ;
939
+ await assertInlineSnapshot (
940
940
t ,
941
941
[ 1 , 2 , 3 ] ,
942
942
`[
@@ -945,7 +945,7 @@ Deno.test("assertInlineSnapshot()", (t) => {
945
945
3,
946
946
]` ,
947
947
) ;
948
- assertInlineSnapshot ( t , "hello world" , `"hello world"` ) ;
948
+ await assertInlineSnapshot ( t , "hello world" , `"hello world"` ) ;
949
949
} ) ;
950
950
951
951
Deno . test ( "assertInlineSnapshot() formats" , async ( ) => {
@@ -956,15 +956,15 @@ Deno.test("assertInlineSnapshot() formats", async () => {
956
956
await Deno . writeTextFile (
957
957
formatTestFile ,
958
958
`import { assertInlineSnapshot } from "${ SNAPSHOT_MODULE_URL } ";
959
- Deno.test("format", (t) => {
960
- assertInlineSnapshot( t, "hello world", \`CREATE\` );
959
+ Deno.test("format", async (t) => {
960
+ await assertInlineSnapshot( t, "hello world", \`CREATE\` );
961
961
});` ,
962
962
) ;
963
963
await Deno . writeTextFile (
964
964
noFormatTestFile ,
965
965
`import { assertInlineSnapshot } from "${ SNAPSHOT_MODULE_URL } ";
966
- Deno.test("no format", (t) => {
967
- assertInlineSnapshot( t, "hello world", \`CREATE\`, { format: false } );
966
+ Deno.test("no format", async (t) => {
967
+ await assertInlineSnapshot( t, "hello world", \`CREATE\`, { format: false } );
968
968
});` ,
969
969
) ;
970
970
@@ -983,15 +983,15 @@ Deno.test("no format", (t) => {
983
983
assertEquals (
984
984
await Deno . readTextFile ( formatTestFile ) ,
985
985
`import { assertInlineSnapshot } from "${ SNAPSHOT_MODULE_URL } ";
986
- Deno.test("format", (t) => {
987
- assertInlineSnapshot(t, "hello world", \`"hello world"\`);
986
+ Deno.test("format", async (t) => {
987
+ await assertInlineSnapshot(t, "hello world", \`"hello world"\`);
988
988
});\n` ,
989
989
) ;
990
990
assertEquals (
991
991
await Deno . readTextFile ( noFormatTestFile ) ,
992
992
`import { assertInlineSnapshot } from "${ SNAPSHOT_MODULE_URL } ";
993
- Deno.test("no format", (t) => {
994
- assertInlineSnapshot( t, "hello world", \`"hello world"\`, { format: false } );
993
+ Deno.test("no format", async (t) => {
994
+ await assertInlineSnapshot( t, "hello world", \`"hello world"\`, { format: false } );
995
995
});` ,
996
996
) ;
997
997
} finally {
0 commit comments