Skip to content

Commit

Permalink
Merge branch 'main' into feature/remove-gh-pages-doc-generation
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Aug 1, 2023
2 parents af091ed + b69163a commit 6a94618
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/verify_machine_json_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ import 'package:test/test.dart';
import '../tool/machine.dart';

void main() {
test('ensure `rules.json` is up to date', () async {
test("ensure 'rules.json' is up to date", () async {
var rulesFilePath = path.join('tool', 'machine', 'rules.json');
var onDisk = File(rulesFilePath).readAsStringSync();
var generated = await generateRulesJson();
expect(generated, onDisk, reason: '''`rules.json` is out of date.
Regenerate by running `dart run tool/machine.dart -w`
''');
expect(
generated,
onDisk,
reason: "'rules.json' is out of date. Regenerate by running "
'`dart tool/machine.dart -w`',
);
});
}

0 comments on commit 6a94618

Please sign in to comment.