make canvas argument optional on instantiating engine
This commit is contained in:
parent
1bd324a406
commit
842cbeca1f
2 changed files with 19 additions and 4 deletions
12
test/src/engine_test.dart
Normal file
12
test/src/engine_test.dart
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
@TestOn('browser')
|
||||
|
||||
import 'dart:html';
|
||||
|
||||
import 'package:rules_of_living/src/Engine.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test("Engine can be instantiated without canvas", () {
|
||||
expect(Engine(), isNot(throwsA(anything)));
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue