Skip to content

Commit

Permalink
Added trailing comma's
Browse files Browse the repository at this point in the history
  • Loading branch information
Guldem committed Aug 17, 2023
1 parent 925bd80 commit cf6f3b7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/flame_tiled/test/tiled_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ void main() {
});

test('correct loads the file, with different prefix', () async {
tiled = await TiledComponent.load('map_custom_path.tmx', Vector2.all(16),
prefix: 'assets/tiles/tiles_custom_path/');
tiled = await TiledComponent.load(
'map_custom_path.tmx',
Vector2.all(16),
prefix: 'assets/tiles/tiles_custom_path/',
);

expect(tiled.tileMap.renderableLayers.length, equals(3));
});
Expand Down Expand Up @@ -121,9 +124,10 @@ void main() {

// TestAssetBundle strips assets/tiles/ from the prefix.
final tsxProvider = await FlameTsxProvider.parse(
'external_tileset_custom_path.tsx',
null,
'assets/tiles/tiles_custom_path/');
'external_tileset_custom_path.tsx',
null,
'assets/tiles/tiles_custom_path/',
);

expect(tsxProvider.getCachedSource() != null, true);
final source = tsxProvider.getCachedSource()!;
Expand Down

0 comments on commit cf6f3b7

Please sign in to comment.