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.

15 lines
625 B

  1. // Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
  2. ['eot', 'otf', 'svg', 'ttf', 'woff']
  3. .forEach(function (extension) {
  4. Tinytest.addAsync(extension + ' fonts are shipped', function (test, done) {
  5. HTTP.get('/packages/semantic_ui/dist/themes/default/assets/fonts/icons.' + extension, function callback(error, result) {
  6. if (error) {
  7. test.fail({message: 'Font failed to load'});
  8. }
  9. else {
  10. test.isTrue(result.content.length > 10000, extension + ' font could not be downloaded');
  11. }
  12. done();
  13. });
  14. });
  15. })
  16. ;