/
githubmirror
/
Semantic-UI
Обзор
Документация
Войти
/
githubmirror
/
Semantic-UI
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/meteor/assets.js
18 строк
589 B
jlukic
Restructure test/ for meteor #1607
12 янв 2015, 21:46
12 янв 2015, 21:46
8afab4a
Код
Авторство
О чём код?
var assets = [ 'dist/themes/default/assets/images/flags.png', ]; // Check that the font files are downloadable. Meteor places assets at /packages/<packageName>/. assets.forEach(function (path) { Tinytest.addAsync('image ' + path + ' is shipped', function (test, done) { HTTP.get('/packages/semantic_ui/' + path, function callback(error, result) { if (error) { test.fail({message: 'Image failed to load'}); } else { test.isTrue(result.content.length > 10000, 'Image ' + path + ' could not be downloaded'); } done(); }); }); });