Skip to content

Commit 017bf0e

Browse files
committed
I think this fixes TravisCI
1 parent eb54cf4 commit 017bf0e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/angular-sticky.spec.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ describe('angular-ui-router-css', function() {
318318

319319
describe('combinations', function() {
320320

321-
xit('both state and injection', function () {
321+
it('both state and injection', function () {
322322

323323
addState('test', {
324324
foo: 'foo.css'
@@ -336,12 +336,16 @@ describe('angular-ui-router-css', function() {
336336
})
337337
});
338338

339-
xit('cannot find "betsol-load-stylesheet"', function(done) {
339+
it('cannot find "betsol-load-stylesheet"', function(done) {
340+
var loadStylesheet = window.loadStylesheet;
340341
window.loadStylesheet = null;
341342

342343
$state.defaultErrorHandler(function(error) {
343344
expect(error.detail.message).toBe('Error "angular-ui-router-css": Package "betsol-load-stylesheet" must be loaded before you can use "angular-ui-router-css"');
344345

346+
// restore the "betsol-load-stylesheet" method
347+
window.loadStylesheet = loadStylesheet;
348+
345349
done();
346350
});
347351

@@ -402,9 +406,6 @@ describe('angular-ui-router-css', function() {
402406
$timeout.flush();
403407

404408
setTimeout(function() {
405-
console.log(head);
406-
console.log(uiCssElement[0]);
407-
console.log(uiCssElement[0].previousSibling);
408409
expect(uiCssElement[0].previousSibling.getAttribute('href').indexOf('test.css') !== -1).toBeTruthy();
409410
removeHandler();
410411

0 commit comments

Comments
 (0)