@@ -11,6 +11,7 @@ import { assert } from "chai";
1111
1212import { IContext , IInjector , Context } from "@robotlegsjs/core" ;
1313
14+ import { SignalCommandMapExtension } from "../../../../../../src/robotlegs/bender/extensions/signalCommandMap/SignalCommandMapExtension" ;
1415import { ISignalCommandMap } from "../../../../../../src/robotlegs/bender/extensions/signalCommandMap/api/ISignalCommandMap" ;
1516import { SignalCommandMap } from "../../../../../../src/robotlegs/bender/extensions/signalCommandMap/impl/SignalCommandMap" ;
1617
@@ -34,6 +35,7 @@ import { SupportSignal } from "../support/SupportSignal";
3435import { SupportSignal2 } from "../support/SupportSignal2" ;
3536
3637describe ( "SignalCommandMap" , ( ) => {
38+ let extension : SignalCommandMapExtension ;
3739 let context : IContext ;
3840 let injector : IInjector ;
3941 let signalCommandMap : SignalCommandMap ;
@@ -120,6 +122,7 @@ describe("SignalCommandMap", () => {
120122 }
121123
122124 beforeEach ( ( ) => {
125+ extension = new SignalCommandMapExtension ( ) ;
123126 context = new Context ( ) ;
124127 injector = context . injector ;
125128 signalCommandMap = new SignalCommandMap ( context ) ;
@@ -134,11 +137,16 @@ describe("SignalCommandMap", () => {
134137 if ( context . initialized ) {
135138 context . destroy ( ) ;
136139 }
140+ extension = null ;
137141 context = null ;
138142 injector = null ;
139143 signalCommandMap = null ;
140144 } ) ;
141145
146+ it ( "extension_is_added" , ( ) => {
147+ assert . isNotNull ( extension ) ;
148+ } ) ;
149+
142150 it ( "test_command_executes_successfully" , ( ) => {
143151 assert . equal ( commandExecutionCount ( 1 ) , 1 ) ;
144152 } ) ;
0 commit comments