Skip to content

Commit e54638f

Browse files
committed
Add test runs during commits
1 parent 9e4f88a commit e54638f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,17 @@ repos:
1515
args: ["format", "."]
1616
language: system
1717
types: [bash]
18+
- id: test-code
19+
name: Flutter test code
20+
always_run: true
21+
entry: flutter
22+
args: ["test"]
23+
language: system
24+
types: [bash]
25+
- id: static-code-analysis
26+
name: Flutter analyze code
27+
always_run: true
28+
entry: flutter
29+
args: ["analyze"]
30+
language: system
31+
types: [bash]

test/xid_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import 'dart:collection';
2-
import 'dart:typed_data';
32

3+
import 'package:test/test.dart';
44
import 'package:xid/src/base32codec.dart';
55
import 'package:xid/xid.dart';
6-
import 'package:test/test.dart';
76

87
void main() {
98
group('Assert xid is created correctly ', () {

0 commit comments

Comments
 (0)