amalgamatic-h5dcsched
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,3 @@ var cheerio = require('cheerio'); | ||
var moment = require('moment'); | ||
var extend = require('util-extend'); | ||
@@ -11,2 +12,6 @@ var options = { | ||
exports.setOptions = function (newOptions) { | ||
options = extend(options, newOptions); | ||
}; | ||
exports.search = function (query, callback) { | ||
@@ -13,0 +18,0 @@ 'use strict'; |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"scripts": { | ||
@@ -28,4 +28,5 @@ "test": "node_modules/lab/bin/lab -t 100" | ||
"cheerio": "^0.17.0", | ||
"moment": "^2.8.3" | ||
"moment": "^2.8.3", | ||
"util-extend": "^1.0.1" | ||
} | ||
} |
@@ -95,2 +95,15 @@ /*jshint expr: true*/ | ||
}); | ||
it('should allow alternate URL to be set with setOptions()', function (done) { | ||
nock('http://cors-anywhere.herokuapp.com') | ||
.get('/html5devconf.com/schedule.html') | ||
.replyWithFile(200, __dirname + '/fixtures/schedule.html'); | ||
sched.setOptions({url: 'http://cors-anywhere.herokuapp.com/html5devconf.com/schedule.html'}); | ||
sched.search({}, function (err, result) { | ||
expect(err).to.be.not.ok; | ||
expect(result).to.be.ok; | ||
done(); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82435
11
142
3
+ Addedutil-extend@^1.0.1
+ Addedutil-extend@1.0.3(transitive)