We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2c993 commit c70e120Copy full SHA for c70e120
app/test/frontend/static_files_test.dart
@@ -212,14 +212,14 @@ void main() {
212
test('script.dart.js and parts size check', () {
213
final file = cache.getFile('/static/js/script.dart.js');
214
expect(file, isNotNull);
215
- expect((file!.bytes.length / 1024).round(), closeTo(333, 2));
+ expect((file!.bytes.length / 1024).round(), closeTo(336, 20));
216
217
final parts = cache.paths
218
.where((path) =>
219
path.startsWith('/static/js/script.dart.js') &&
220
path.endsWith('part.js'))
221
.toList();
222
- expect(parts.length, closeTo(17, 3));
+ expect(parts.length, closeTo(15, 5));
223
final partsSize = parts
224
.map((p) => cache.getFile(p)!.bytes.length)
225
.reduce((a, b) => a + b);
0 commit comments