Updating NPM dependencies
This commit is contained in:
8
node_modules/jest-jasmine2/build/jasmine/Timer.js
generated
vendored
8
node_modules/jest-jasmine2/build/jasmine/Timer.js
generated
vendored
@@ -50,8 +50,8 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
const defaultNow = (function(Date) {
|
||||
return function() {
|
||||
const defaultNow = (function (Date) {
|
||||
return function () {
|
||||
return new Date().getTime();
|
||||
};
|
||||
})(Date);
|
||||
@@ -66,11 +66,11 @@ class Timer {
|
||||
const now = options.now || defaultNow;
|
||||
let startTime;
|
||||
|
||||
this.start = function() {
|
||||
this.start = function () {
|
||||
startTime = now();
|
||||
};
|
||||
|
||||
this.elapsed = function() {
|
||||
this.elapsed = function () {
|
||||
return now() - startTime;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user