Fix handling of empty --project-assets option (#6873)
This commit is contained in:
committed by
Todd Volkert
parent
2b84d1ff1b
commit
ae1881e4c7
@@ -28,6 +28,10 @@ void main() {
|
||||
test('does not need a rebuild', () async {
|
||||
expect(new AssetBundle.fixed(null, null).needsBuild(), isFalse);
|
||||
});
|
||||
test('empty string', () async {
|
||||
AssetBundle ab = new AssetBundle.fixed('', '');
|
||||
expect(ab.entries, isEmpty);
|
||||
});
|
||||
test('single entry', () async {
|
||||
AssetBundle ab = new AssetBundle.fixed('', 'apple.txt');
|
||||
expect(ab.entries, isNotEmpty);
|
||||
|
||||
Reference in New Issue
Block a user