You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
589 B
20 lines
589 B
var assets = [
|
|
'dist/themes/default/assets/images/flags.png',
|
|
];
|
|
|
|
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
|
|
assets.forEach(function (path) {
|
|
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();
|
|
});
|
|
});
|
|
});
|
|
|
|
|