fix: add tests for enums

This commit is contained in:
StevanFreeborn
2023-01-26 23:47:25 -06:00
parent fcc47993cd
commit c5de0131e0
20 changed files with 400 additions and 10 deletions
+25
View File
@@ -0,0 +1,25 @@
import { TimeSpanRecurrenceType } from '../src/enums/TimeSpanRecurrenceType';
import { expect } from 'chai';
describe('TimeSpanRecurrenceType', function () {
describe('None', function () {
it('should return the correct value', function () {
const result = TimeSpanRecurrenceType.None;
expect(result).to.equal('None');
});
});
describe('EndByDate', function () {
it('should return the correct value', function () {
const result = TimeSpanRecurrenceType.EndByDate;
expect(result).to.equal('EndByDate');
});
});
describe('EndAfterOccurrences', function () {
it('should return the correct value', function () {
const result = TimeSpanRecurrenceType.EndAfterOccurrences;
expect(result).to.equal('EndAfterOccurrences');
});
});
});