]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Use QUnit.expect since assert.expect is not available in the latest version of npm...
authorCaleb Cauthon <calebcauthon@gmail.com>
Wed, 4 Nov 2015 04:04:29 +0000 (22:04 -0600)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Dec 2015 06:20:33 +0000 (22:20 -0800)
src/test/moment/add_subtract.js

index d76f6f77ebb950db989c54ac27829191229ceb03..3a4077e597e189409d7f1850522422f6d009730f 100644 (file)
@@ -1,4 +1,4 @@
-import { module, test } from '../qunit';
+import { module, test, expect } from '../qunit';
 import moment from '../../moment';
 
 module('add and subtract');
@@ -298,7 +298,7 @@ test('add across DST', function (assert) {
     // Detect Safari bug and bail. Hours on 13th March 2011 are shifted
     // with 1 ahead.
     if (new Date(2011, 2, 13, 5, 0, 0).getHours() !== 5) {
-        assert.expect(0);
+        expect(0);
         return;
     }