more tests

This commit is contained in:
Niels Lyngsø
2024-03-05 20:24:12 +01:00
parent 0bda8196e1
commit 1ee73f3ea7

View File

@@ -41,17 +41,20 @@ describe('UmbElement', () => {
it('has an hasController method', () => {
expect(hostElement).to.have.property('getHostElement').that.is.a('function');
});
it('has an hasController should return it self', () => {
expect(hostElement.getHostElement()).to.be.equal(hostElement);
});
it('has an observe method', () => {
expect(hostElement).to.have.property('observe').that.is.a('function');
});
it('has an provideContext method', () => {
expect(hostElement).to.have.property('observe').that.is.a('function');
expect(hostElement).to.have.property('provideContext').that.is.a('function');
});
it('has an consumeContext method', () => {
expect(hostElement).to.have.property('observe').that.is.a('function');
expect(hostElement).to.have.property('consumeContext').that.is.a('function');
});
it('has an getContext method', () => {
expect(hostElement).to.have.property('observe').that.is.a('function');
expect(hostElement).to.have.property('getContext').that.is.a('function');
});
it('has an localization class instance', () => {
expect(hostElement).to.have.property('localize').that.is.a('object');