File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
10
10
assertRejects ,
11
11
assertStrictEquals ,
12
12
assertStringIncludes ,
13
- assertThrows ,
14
13
} from "jsr:@std/assert@^1.0.1" ;
15
14
import {
16
15
assertSpyCall ,
@@ -1242,7 +1241,7 @@ Deno.test("Service", async (t) => {
1242
1241
1243
1242
service . interrupt ( ) ;
1244
1243
1245
- assertThrows ( ( ) => signal . throwIfAborted ( ) ) ;
1244
+ assert ( signal . aborted ) ;
1246
1245
} ) ;
1247
1246
1248
1247
await t . step ( "sends signal to `interrupted` attribute with reason" , ( ) => {
@@ -1251,7 +1250,8 @@ Deno.test("Service", async (t) => {
1251
1250
1252
1251
service . interrupt ( "test" ) ;
1253
1252
1254
- assertThrows ( ( ) => signal . throwIfAborted ( ) , "test" ) ;
1253
+ assert ( signal . aborted ) ;
1254
+ assertEquals ( signal . reason , "test" ) ;
1255
1255
} ) ;
1256
1256
} ) ;
1257
1257
You can’t perform that action at this time.
0 commit comments