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
588 B

  1. var images = [
  2. 'dist/themes/default/assets/images/flags.png',
  3. ];
  4. // Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
  5. images.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. } else {
  11. test.isTrue(result.content.length > 10000, 'Image ' + path + ' could not be downloaded');
  12. }
  13. done();
  14. });
  15. });
  16. });