Skip to content

Commit

Permalink
Fix bug with isStandardBrowserEnv (axios#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
eu81273 committed Jan 13, 2017
1 parent 68ec2ab commit a87e0b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -181,7 +181,7 @@ function isStandardBrowserEnv() {
return (
typeof window !== 'undefined' &&
typeof document !== 'undefined' &&
typeof document.createElement === 'function'
typeof document.createElement !== 'undefined'
);
}

Expand Down
1 change: 1 addition & 0 deletions test/specs/requests.spec.js
Expand Up @@ -51,6 +51,7 @@ describe('requests', function () {
expect(reason.config.method).toBe('get');
expect(reason.config.url).toBe('http://thisisnotaserver');

jasmine.Ajax.install();
done();
};

Expand Down

0 comments on commit a87e0b7

Please sign in to comment.