first commit

This commit is contained in:
Owen LeJeune
2018-03-07 17:18:40 -05:00
commit dfa77bc52a
403 changed files with 52076 additions and 0 deletions

24
node_modules/has-cors/test.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
var expect = require('chai').expect;
describe('has-cors', function() {
beforeEach(function() {
// make sure result is not cached
delete require.cache[require.resolve('./')];
});
it('should not have cors', function() {
var hasCors = require('./');
expect(hasCors).to.be.false;
});
it('should have cors', function() {
global.XMLHttpRequest = function() {
this.withCredentials = true;
};
var hasCors = require('./');
expect(hasCors).to.be.true;
});
});