fix tests

This commit is contained in:
Niels Lyngsø
2023-06-27 10:32:31 +02:00
parent a39ceabb7b
commit 1a59ac7234
2 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ describe('UmbContextProvider', () => {
describe('Public API', () => {
describe('properties', () => {
it('has a host property', () => {
expect(provider).to.have.property('host');
it('has a hostElement property', () => {
expect(provider).to.have.property('hostElement');
});
});

View File

@@ -21,7 +21,7 @@ describe('UmbContextProvider', () => {
});
describe('Destroyed controllers is gone from host', () => {
it('has a host property', () => {
it('controller is removed from host when destroyed', () => {
const ctrl = new UmbContextProviderController(hostElement, 'my-test-context', contextInstance);
expect(hostElement.hasController(ctrl)).to.be.true;
@@ -33,7 +33,7 @@ describe('UmbContextProvider', () => {
});
describe('Unique controllers replace each other', () => {
it('has a host property', () => {
it('controller is replaced by another controller using the same unique', () => {
const firstCtrl = new UmbContextProviderController(hostElement, 'my-test-context', contextInstance);
const secondCtrl = new UmbContextProviderController(hostElement, 'my-test-context', new UmbTestContext());