File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
test/modules/example/lds/__tests__ Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments