Files
lunasea/test/core/assets_test.dart
Jagandeep Brar 3e68fb3e97 fix(Assets): Cleanup assets, add asset existence tests (#460)
* feat(packages): Add coverage script, update spider asset paths
* fix(Assets): Cleanup asset structure
* fix(Assets): Update asset paths within codebase
2021-05-03 10:58:19 -05:00

31 lines
1.3 KiB
Dart

import 'dart:io';
import 'package:lunasea/core/assets.dart';
import 'package:test/test.dart';
void main() {
group('LunaAssets', () {
test('Blanks: Assets Exist', () {
expect(File(LunaAssets.blankAudio).existsSync(), true);
expect(File(LunaAssets.blankDevice).existsSync(), true);
expect(File(LunaAssets.blankStream).existsSync(), true);
expect(File(LunaAssets.blankUser).existsSync(), true);
expect(File(LunaAssets.blankVideo).existsSync(), true);
});
test('Branding: Assets Exist', () {
expect(File(LunaAssets.brandingFull).existsSync(), true);
expect(File(LunaAssets.brandingLogo).existsSync(), true);
});
test('Services: Assets Exist', () {
expect(File(LunaAssets.serviceBandsintown).existsSync(), true);
expect(File(LunaAssets.serviceDiscogs).existsSync(), true);
expect(File(LunaAssets.serviceImdb).existsSync(), true);
expect(File(LunaAssets.serviceLastfm).existsSync(), true);
expect(File(LunaAssets.serviceThemoviedb).existsSync(), true);
expect(File(LunaAssets.serviceThetvdb).existsSync(), true);
expect(File(LunaAssets.serviceTrakt).existsSync(), true);
expect(File(LunaAssets.serviceTvmaze).existsSync(), true);
expect(File(LunaAssets.serviceYoutube).existsSync(), true);
});
});
}