/
githubmirror
/
fullPage.js
Обзор
Документация
Войти
/
githubmirror
/
fullPage.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/unit/recordHistory.js
18 строк
512 B
Alvaro Trigo López
Bunch of unit tests
08 май 2018, 16:54
08 май 2018, 16:54
a5b57ad
Код
Авторство
О чём код?
//mockup (apparently location.replace is read only so.... NO TESTS...) /* window.location.replace = function(url){ console.log("weeee"); locationReplace = url; }; QUnit.test('Testing recordHistory:false', function(assert) { var id = '#fullpage'; var FP = initFullpageNew(id, Object.assign({}, allBasicOptions, {recordHistory: false})); var windowHeight = $(window).height(); FP.moveSectionDown(); assert.equal(locationReplace, '#page2', 'We expect section 3 to be active'); }); */