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

  1. var assets = [
  2. 'dist/themes/default/assets/images/flags.png',
  3. ];
  4. // Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
  5. assets.forEach(function (path) {
  6. Tinytest.addAsync('image ' + path + ' is shipped', function (test, done) {
  7. HTTP.get('/packages/semantic_ui/' + path, function callback(error, result) {
  8. if (error) {
  9. test.fail({message: 'Image failed to load'});
  10. }
  11. else {
  12. test.isTrue(result.content.length > 10000, 'Image ' + path + ' could not be downloaded');
  13. }
  14. done();
  15. });
  16. });
  17. });