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