UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

13 lines (9 loc) 372 B
StartTest(function (t) { t.it('Should return promise from `type` method', function (t) { document.body.innerHTML = '<input id="inp" type="text" value=""/>' var field = document.getElementById('inp') t.type(field, 'fzx[BACKSPACE]zf').then(function () { t.is(field.value, 'fzzf', 'Promise resolved correctly') }) }) })