How to get document body of app in Jasmine
up vote
0
down vote
favorite
I have a theming logic in my app which assigns a class (i.e. theme-dark) to the body of the application. Now, I want to test if that class is properly assigned to the body.
How can I get the document.body
of my application in Jasmine?
According to this thread: What is document.body in Jasmine tests?
document.body
delivers the body of the test runner file.
angular jasmine karma-jasmine
add a comment |
up vote
0
down vote
favorite
I have a theming logic in my app which assigns a class (i.e. theme-dark) to the body of the application. Now, I want to test if that class is properly assigned to the body.
How can I get the document.body
of my application in Jasmine?
According to this thread: What is document.body in Jasmine tests?
document.body
delivers the body of the test runner file.
angular jasmine karma-jasmine
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a theming logic in my app which assigns a class (i.e. theme-dark) to the body of the application. Now, I want to test if that class is properly assigned to the body.
How can I get the document.body
of my application in Jasmine?
According to this thread: What is document.body in Jasmine tests?
document.body
delivers the body of the test runner file.
angular jasmine karma-jasmine
I have a theming logic in my app which assigns a class (i.e. theme-dark) to the body of the application. Now, I want to test if that class is properly assigned to the body.
How can I get the document.body
of my application in Jasmine?
According to this thread: What is document.body in Jasmine tests?
document.body
delivers the body of the test runner file.
angular jasmine karma-jasmine
angular jasmine karma-jasmine
asked Nov 8 at 9:26
dave0688
804527
804527
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204781%2fhow-to-get-document-body-of-app-in-jasmine%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password