Skip to content

Commit b7151c2

Browse files
committed
test(LdsTestWireAdapter): ensure ti works fine for LDS
1 parent fdf42e4 commit b7151c2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/modules/example/lds/__tests__/lds-adapter.test.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,28 @@ describe('LdsTestWireAdapter', () => {
212212
});
213213
});
214214

215+
describe('resetLastConfig', () => {
216+
test('getLastConfig() should return the last available config despite we run a new set of test', () => {
217+
//Arrange
218+
const actual = adapter.getLastConfig();
219+
220+
// Assert
221+
expect(actual).not.toBeNull();
222+
});
223+
224+
it('should reset the last available', () => {
225+
// Arrange
226+
let actual;
227+
228+
//Act
229+
adapter.resetLastConfig();
230+
actual = adapter.getLastConfig();
231+
232+
// Assert
233+
expect(actual).toBeNull();
234+
});
235+
});
236+
215237
describe('emit()', () => {
216238
it('should emit default value when component is created but not connected', () => {
217239
const element = createElement('example-lds', { is: Lds });

0 commit comments

Comments
 (0)