dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

assert.numberOfElements doesn't increase assertion counter #53

Open Munter opened 10 years ago

Munter commented 10 years ago

Test:

module.exports = {
    'TodoMVC - VanillaJS': function (test) {
        test
            .open('http://todomvc.com/vanilla-examples/vanillajs/')
            .assert.numberOfElements('#todo-list li', 0, 'There should be no todos')
            .done();
    }
};

Command line output:

RUNNING TEST - "TodoMVC - VanillaJS"
▶ OPEN http://todomvc.com/vanilla-examples/vanillajs/
✔ 0 Assertions run
✔ TEST - "TodoMVC - VanillaJS" SUCCEEDED
asciidisco commented 10 years ago

Hmm, seems like a bug that appears when you expect 0 elements & also 0 elements are found. Investigating further.