This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import 'dart:html';
5
5
6
6
import 'package:async_helper/async_helper.dart' ;
7
7
import 'package:async_helper/async_minitest.dart' ;
8
- import 'package:expect/minitest.dart' as minitest;
9
8
10
9
11
10
Future <FileSystem > _fileSystem;
@@ -30,8 +29,8 @@ main() {
30
29
});
31
30
32
31
test ('requestFileSystem' , () async {
33
- var expectation = FileSystem .supported ? minitest. returnsNormally : throws;
34
- minitest. expect (() async {
32
+ var expectation = FileSystem .supported ? returnsNormally : throws;
33
+ expect (() async {
35
34
var fs = await fileSystem;
36
35
expect (fs.root != null , true );
37
36
}, expectation);
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ library WebSocketTest;
3
3
import 'dart:html' ;
4
4
5
5
import 'package:async_helper/async_minitest.dart' ;
6
- import 'package:expect/minitest.dart' as minitest;
7
6
8
7
main () {
9
8
group ('supported' , () {
@@ -13,15 +12,13 @@ main() {
13
12
});
14
13
15
14
group ('websocket' , () {
16
- var isWebSocket =
17
- minitest.predicate ((x) => x is WebSocket , 'is a WebSocket' );
18
- var expectation = WebSocket .supported ? minitest.returnsNormally : throws;
15
+ var expectation = WebSocket .supported ? returnsNormally : throws;
19
16
20
17
test ('constructorTest' , () {
21
- minitest. expect (() {
18
+ expect (() {
22
19
var socket = new WebSocket ('ws://localhost/ws' , 'chat' );
23
20
expect (socket, isNotNull);
24
- minitest. expect (socket, isWebSocket );
21
+ expect (socket, isInstanceOf < WebSocket >() );
25
22
}, expectation);
26
23
});
27
24
You can’t perform that action at this time.
0 commit comments