Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
test(utils): improve dio test
Browse files Browse the repository at this point in the history
  • Loading branch information
CCXXXI committed Oct 25, 2021
1 parent 9b9cb16 commit 9b84326
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/utils/web_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import 'package:ecnu_timetable/utils/web.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
test(
'dio',
() => expect(
defaultDio.interceptors,
test('dio', () {
if (dio != defaultDio) dio = defaultDio;

expect(
dio.interceptors,
isNotEmpty,
),
);
);
});

test(
'sucker',
Expand Down

0 comments on commit 9b84326

Please sign in to comment.