wishthis/node_modules/fomantic-ui/test/meteor/fonts.js

16 lines
625 B
JavaScript
Raw Normal View History

2022-01-13 13:00:31 +00:00
// Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/.
['eot', 'otf', 'svg', 'ttf', 'woff']
.forEach(function (extension) {
Tinytest.addAsync(extension + ' fonts are shipped', function (test, done) {
HTTP.get('/packages/semantic_ui/dist/themes/default/assets/fonts/icons.' + extension, function callback(error, result) {
if (error) {
test.fail({message: 'Font failed to load'});
}
else {
test.isTrue(result.content.length > 10000, extension + ' font could not be downloaded');
}
done();
});
});
})
;