/
kopython
/
_hyperscript
Обзор
Документация
Войти
/
kopython
/
_hyperscript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/expressions/no.js
26 строк
721 B
carson
add `length` property to ElementCollection
16 дек 2021, 15:12
16 дек 2021, 15:12
35a72a5
Код
Авторство
О чём код?
describe("the no expression", function () { it("no returns true for null", function () { var result = evalHyperScript("no null"); result.should.equal(true); }); it("no returns false for non-null", function () { var result = evalHyperScript("no 'thing'"); result.should.equal(false); }); it("no returns true for empty array", function () { var result = evalHyperScript("no []"); result.should.equal(true); }); it("no returns true for empty selector", function () { var result = evalHyperScript("no .aClassThatDoesNotExist"); result.should.equal(true); }); it("no returns false for non-null", function () { var result = evalHyperScript("no ['thing']"); result.should.equal(false); }); });