@@ -16,8 +16,6 @@ var auth = require('../lib/auth');
1616 */
1717
1818describe ( '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} ) ;
0 commit comments