Skip to content

Instantly share code, notes, and snippets.

@deanapeterson
Created July 16, 2013 21:20
Show Gist options
  • Save deanapeterson/6015260 to your computer and use it in GitHub Desktop.
Save deanapeterson/6015260 to your computer and use it in GitHub Desktop.
Inserting styles into jasmine/karma tests
beforeEach(inject(function( _$document_){
$document = _$document_;
$document.find("head").append(
"<style>\
table{width:100%}\
</style>"
);
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment