-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bc7831
commit f54f4ae
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:build_verify/build_verify.dart'; | ||
import 'package:path/path.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
test('ensure_build', expectBuildClean); | ||
test('install scripts have been moved', () { | ||
final sourceInstall = File(join('scripts', 'install.sh')); | ||
final sourceUninstall = File(join('scripts', 'uninstall.sh')); | ||
|
||
final targetInstall = File(join('docs', 'public', 'install.sh')); | ||
final targetUninstall = File(join('docs', 'public', 'uninstall.sh')); | ||
|
||
expect( | ||
sourceInstall.existsSync() && sourceUninstall.existsSync(), | ||
isTrue, | ||
reason: 'install.sh and uninstall.sh exist', | ||
); | ||
expect( | ||
sourceInstall.readAsStringSync(), | ||
targetInstall.readAsStringSync(), | ||
reason: 'Install scripts are the same', | ||
); | ||
|
||
expect( | ||
sourceUninstall.readAsStringSync(), | ||
targetUninstall.readAsStringSync(), | ||
reason: 'Uninstall scripts are the same', | ||
); | ||
}); | ||
} |