22 lines
719 B
JavaScript
22 lines
719 B
JavaScript
|
'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');
|
||
|
});
|
||
|
});
|