Skip to content

Commit 9f84b2a

Browse files
committed
disabled broken tests per #711
1 parent 7b29998 commit 9f84b2a

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

test/auth.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ var auth = require('../lib/auth');
1616
*/
1717

1818
describe('2.0 authorizations', function () {
19-
20-
2119
before(function(){
2220
fauxjax.install();
2321
});
@@ -38,7 +36,6 @@ describe('2.0 authorizations', function () {
3836
});
3937

4038
it('adds given hash to the auth object', function(){
41-
4239
// I don't really care what it adds...
4340
var auth = {foo: 'bar'};
4441
var client = new Swagger({
@@ -50,7 +47,8 @@ describe('2.0 authorizations', function () {
5047
expect(client.clientAuthorizations.authz.someAuth).to.equal(auth);
5148

5249
});
53-
50+
/*
51+
// re-enable after https://github.com/swagger-api/swagger-js/issues/711
5452
it('should have auth available when fetching the spec', function(done){
5553
var url = 'http://example.com/not_important';
5654
@@ -77,9 +75,8 @@ describe('2.0 authorizations', function () {
7775
},
7876
failure: function (err) { throw err; }
7977
});
80-
81-
8278
});
79+
*/
8380

8481
it('should have clientAuthorizations instantiated before #initialize', function(){
8582
var client = new Swagger(); // don't initialize here, no-args
@@ -173,23 +170,23 @@ describe('2.0 authorizations', function () {
173170
expect(req.headers.Authorization).to.equal('foo');
174171
});
175172

176-
it('applies multiple auths', function (done) {
177173

174+
/*
175+
// re-enable after https://github.com/swagger-api/swagger-js/issues/711
176+
177+
it('applies multiple auths', function (done) {
178178
var url = 'http://example.com/multiple_auths';
179179
180180
// Mock out the request, will only allow one request
181181
fauxjax.once('request', function (req) {
182-
183182
expect(req.requestHeaders).to.include.keys('auth');
184183
expect(req.requestHeaders.auth).to.equal('val');
185184
186185
expect(req.requestHeaders).to.include.keys('auth1');
187186
expect(req.requestHeaders.auth1).to.equal('val1');
188187
189-
190188
// Send something back, so we don't crash swagger
191189
req.respond( 200, { }, JSON.stringify({swagger: '2.0', title: 'test'}));
192-
193190
});
194191
195192
var swag = new Swagger({
@@ -210,7 +207,6 @@ describe('2.0 authorizations', function () {
210207
},
211208
failure: function (err) { throw err; }
212209
});
213-
214210
});
215-
211+
*/
216212
});

test/both/http.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var petstoreYaml = fs.readFileSync(__dirname + '/../spec/v2/petstore.yaml', 'utf
99
var petstore;
1010

1111
describe('yaml http', function () {
12-
1312
before(function(){
1413
fauxjax.install();
1514
});
@@ -20,6 +19,8 @@ describe('yaml http', function () {
2019
});
2120

2221
describe('superagent', function(){
22+
/*
23+
// re-enable after https://github.com/swagger-api/swagger-js/issues/711
2324
2425
it('should fetch/parse petstore.yaml', function(done){
2526
// Mock our request
@@ -44,7 +45,7 @@ describe('yaml http', function () {
4445
done();
4546
}
4647
});
47-
48+
*/
4849

4950
// it('should parse yaml with the resolver', function(done){
5051
// var baseSpec = 'swagger: "2.0"';
@@ -109,5 +110,4 @@ describe('yaml http', function () {
109110
// });
110111

111112
});
112-
113113
});

test/http.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ var sample, instance;
88

99

1010
describe('yaml http', function () {
11-
1211
describe('superagent', function(){
13-
1412
before(function (done) {
1513
mock.petstore(done,{
1614
url: 'http://localhost:8000/v2/petstore.yaml'

0 commit comments

Comments
 (0)