wishthis/node_modules/fomantic-ui/test/meteor/assets.js

18 lines
638 B
JavaScript
Raw Normal View History

2023-08-17 09:47:40 +00:00
let assets = [
'dist/themes/default/assets/images/flags.png',
2022-01-13 13:00:31 +00:00
];
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
assets.forEach(function (path) {
2023-08-17 09:47:40 +00:00
Tinytest.addAsync('image ' + path + ' is shipped', function (test, done) {
HTTP.get('/packages/semantic_ui/' + path, function callback(error, result) {
if (error) {
test.fail({ message: 'Image failed to load' });
} else {
test.isTrue(result.content.length > 10000, 'Image ' + path + ' could not be downloaded');
}
done();
});
2022-01-13 13:00:31 +00:00
});
});