You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
719 B
22 lines
719 B
2 years ago
|
'use strict';
|
||
|
|
||
|
const { expect } = require('chai');
|
||
|
const conversion = require('../../src/convert-expression/week-day-names-conversion');
|
||
|
|
||
|
describe('week-day-names-conversion.js', () => {
|
||
|
it('shuld convert week day names names', () => {
|
||
|
const weekDays = conversion('Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday');
|
||
|
expect(weekDays).to.equal('1,2,3,4,5,6,0');
|
||
|
});
|
||
|
|
||
|
it('shuld convert short week day names names', () => {
|
||
|
const weekDays = conversion('Mon,Tue,Wed,Thu,Fri,Sat,Sun');
|
||
|
expect(weekDays).to.equal('1,2,3,4,5,6,0');
|
||
|
});
|
||
|
|
||
|
it('shuld convert 7 to 0', () => {
|
||
|
const weekDays = conversion('7');
|
||
|
expect(weekDays).to.equal('0');
|
||
|
});
|
||
|
});
|