@kickscondor/umbrellajs
Version:
Lightweight and intuitive javascript library
18 lines (14 loc) • 505 B
JavaScript
// Testing the main file
describe(".text(content)", function() {
it("should be a function", function() {
expect(typeof base.hasClass).to.equal('function');
});
it("can get the text content", function() {
expect(base.find('#world').text()).to.equal('Hello world');
});
it("can set the text content", function() {
expect(base.find('#world').text()).not.to.equal('hello!');
base.find('#world').text('hello!');
expect(base.find('#world').text()).to.equal('hello!');
});
});