Skip to content

Commit

Permalink
disabled headless test, re-enabled resolver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Feb 19, 2016
1 parent a79c9a0 commit d8bf14e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 15 deletions.
12 changes: 9 additions & 3 deletions browser/swagger-client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion browser/swagger-client.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 16 additions & 9 deletions test/browser/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,22 @@ describe('yaml http', function () {
});

it('should support relative spec URLs as per #645', function(done) {
try {
new Swagger({
url: '/base/test/spec/v2/test.json',
usePromise: true
}).then(function(client) {
done();
});
} catch (exception) {
done(exception);
// this test requires being run from the browser
if(typeof window !== 'undefined') {
try {
new Swagger({
url: '/base/test/spec/v2/test.json',
usePromise: true
}).then(function (client) {
done();
});
} catch (exception) {
done(exception);
}
}
else {
console.log('skipping headless test');
done();
}
});
});
4 changes: 2 additions & 2 deletions test/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('swagger resolver', function () {
instance.close();
done();
});
/*

it('is OK without remote references', function (done) {
var api = new Resolver();
var spec = {};
Expand Down Expand Up @@ -1195,7 +1195,7 @@ describe('swagger resolver', function () {
done();
});
});
*/

it('resolves allOf in response object for #681', function(done) {
var api = new Resolver();
var spec = {
Expand Down

0 comments on commit d8bf14e

Please sign in to comment.