Commit c6efbd6
committed
test: Fix test failures triggered with --no-babel
When we run ./test.py --no-babel, Babel is not used to transpile the
tests. (This restricts test runs to modern browsers and prevents
testing on, say, IE11.)
But Babel seems to have masked some issues with constructor spies.
Jasmine will call your fake callback with "new" if the spy itself is
called with "new", but this means that constructor spies must have
plain function callbacks, not arrow functions.
Change-Id: I936b024504c4173cc29824408e97e5c7d6c591d81 parent 3a7d5b2 commit c6efbd6
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| |||
1158 | 1163 | | |
1159 | 1164 | | |
1160 | 1165 | | |
1161 | | - | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1162 | 1172 | | |
1163 | 1173 | | |
1164 | 1174 | | |
| |||
0 commit comments