Skip to content

Commit c70e120

Browse files
committed
Fix tests
1 parent 4d2c993 commit c70e120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/test/frontend/static_files_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ void main() {
212212
test('script.dart.js and parts size check', () {
213213
final file = cache.getFile('/static/js/script.dart.js');
214214
expect(file, isNotNull);
215-
expect((file!.bytes.length / 1024).round(), closeTo(333, 2));
215+
expect((file!.bytes.length / 1024).round(), closeTo(336, 20));
216216

217217
final parts = cache.paths
218218
.where((path) =>
219219
path.startsWith('/static/js/script.dart.js') &&
220220
path.endsWith('part.js'))
221221
.toList();
222-
expect(parts.length, closeTo(17, 3));
222+
expect(parts.length, closeTo(15, 5));
223223
final partsSize = parts
224224
.map((p) => cache.getFile(p)!.bytes.length)
225225
.reduce((a, b) => a + b);

0 commit comments

Comments
 (0)