@@ -148,24 +148,28 @@ export function main() {
148148 expect ( eventBinding . source . source ) . toEqual ( 'doItGlobal()' ) ;
149149 } ) ;
150150
151+ //TODO: assertions should be enabled when running tests: https://github.com/angular/angular/issues/1340
151152 describe ( 'viewport directives' , ( ) => {
152153 it ( 'should not allow multiple viewport directives on the same element' , ( ) => {
153154 expect ( ( ) => {
154155 process (
155156 el ( '<template some-vp some-vp2></template>' )
156157 ) ;
157- } ) . toThrowError ( 'Only one viewport directive is allowed per element - check <template some-vp some-vp2>' ) ;
158+ } ) . toThrowError ( 'Only one viewport directive is allowed per element - check '
159+ + ( assertionsEnabled ( ) ? '<template some-vp some-vp2>' : 'null' ) ) ;
158160 } ) ;
159161
160162 it ( 'should not allow viewport directives on non <template> elements' , ( ) => {
161163 expect ( ( ) => {
162164 process (
163165 el ( '<div some-vp></div>' )
164166 ) ;
165- } ) . toThrowError ( 'Viewport directives need to be placed on <template> elements or elements with template attribute - check <div some-vp>' ) ;
167+ } ) . toThrowError ( 'Viewport directives need to be placed on <template> elements or elements with template attribute - check '
168+ + ( assertionsEnabled ( ) ? '<div some-vp>' : 'null' ) ) ;
166169 } ) ;
167170 } ) ;
168171
172+ //TODO: assertions should be enabled when running tests: https://github.com/angular/angular/issues/1340
169173 describe ( 'component directives' , ( ) => {
170174 it ( 'should save the component id' , ( ) => {
171175 var results = process (
@@ -179,15 +183,17 @@ export function main() {
179183 process (
180184 el ( '<div some-comp some-comp2></div>' )
181185 ) ;
182- } ) . toThrowError ( 'Only one component directive is allowed per element - check <div some-comp some-comp2>' ) ;
186+ } ) . toThrowError ( 'Only one component directive is allowed per element - check '
187+ + ( assertionsEnabled ( ) ? '<div some-comp some-comp2>' : 'null' ) ) ;
183188 } ) ;
184189
185190 it ( 'should not allow component directives on <template> elements' , ( ) => {
186191 expect ( ( ) => {
187192 process (
188193 el ( '<template some-comp></template>' )
189194 ) ;
190- } ) . toThrowError ( 'Only template directives are allowed on template elements - check <template some-comp>' ) ;
195+ } ) . toThrowError ( 'Only template directives are allowed on template elements - check '
196+ + ( assertionsEnabled ( ) ? '<template some-comp>' : 'null' ) ) ;
191197 } ) ;
192198 } ) ;
193199
0 commit comments