var start = moment([2007, 1, 28]);
assert.equal(
start.from(moment([2007, 1, 28]).add({ s: 44 }), true),
- 'birneçə saniyə',
+ 'bir neçə saniyə',
'44 seconds = a few seconds'
);
assert.equal(
});
test('suffix', function (assert) {
- assert.equal(moment(30000).from(0), 'birneçə saniyə sonra', 'prefix');
- assert.equal(moment(0).from(30000), 'birneçə saniyə əvvəl', 'suffix');
+ assert.equal(moment(30000).from(0), 'bir neçə saniyə sonra', 'prefix');
+ assert.equal(moment(0).from(30000), 'bir neçə saniyə əvvəl', 'suffix');
});
test('now from now', function (assert) {
assert.equal(
moment().fromNow(),
- 'birneçə saniyə əvvəl',
+ 'bir neçə saniyə əvvəl',
'now from now should display as in the past'
);
});
test('fromNow', function (assert) {
assert.equal(
moment().add({ s: 30 }).fromNow(),
- 'birneçə saniyə sonra',
+ 'bir neçə saniyə sonra',
'in a few seconds'
);
assert.equal(moment().add({ d: 5 }).fromNow(), '5 gün sonra', 'in 5 days');