/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/e2e/tests/helpers/main.js
22 строки
427 B
Michał Gołębiowski
chore(*): switch from JSHint/JSCS to ESLint
05 авг 2016, 23:18
05 авг 2016, 23:18
c322032
Код
Авторство
О чём код?
'use strict'; var helper = { loadFixture: function(fixture) { var i = 0; while (fixture[i] === '/') ++i; fixture = fixture.slice(i); if (!/\/(index\.html)?$/.test(fixture)) { fixture += '/'; } if (process.env.USE_JQUERY) { fixture += '?jquery'; } browser.get('/e2e/fixtures/' + fixture); return helper; } }; global.test = helper; global.loadFixture = helper.loadFixture;