en.javascript.info/1-js/4-data-structures/4-object-for-in/1-is-empty/_js.view/test.js
Ilya Kantor 87bf53d076 update
2014-11-16 01:40:20 +03:00

9 lines
No EOL
361 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

describe("isEmpty", function() {
it("если объект пустой - возвращает true", function() {
assert.isTrue( isEmpty({}) );
});
it("если у объекта есть любое свойство, не важно какое - возвращает false", function() {
assert.isFalse( isEmpty({ anything: false }) );
});
});