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