Skip to content

Commit

Permalink
fix: fixed test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Jan 21, 2021
1 parent 6431065 commit 1455204
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/config/configTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('Config', () => {
}
});
describe('maxQueryLimit', () => {
it('will throw an error', async () => {
it('will throw an error when value is mixed alphanumeric', async () => {
const config: Config = await Config.create(Config.getDefaultOptions(true));
try {
config.set('maxQueryLimit', '123abc');
Expand All @@ -156,7 +156,7 @@ describe('Config', () => {
expect(err).to.have.property('name', 'InvalidConfigValue');
}
});
it('will throw an error', async () => {
it('will throw an error when value is not numeric', async () => {
const config: Config = await Config.create(Config.getDefaultOptions(true));
try {
config.set('maxQueryLimit', 'abc');
Expand All @@ -165,12 +165,12 @@ describe('Config', () => {
expect(err).to.have.property('name', 'InvalidConfigValue');
}
});
it('will set config value', async () => {
it('will set config value with stringified number', async () => {
const config: Config = await Config.create(Config.getDefaultOptions(true));
const res = config.set('maxQueryLimit', '123');
expect(res.maxQueryLimit).to.equal('123');
});
it('will set config value', async () => {
it('will set config value with as number as it should be', async () => {
const config: Config = await Config.create(Config.getDefaultOptions(true));
const res = config.set('maxQueryLimit', 123);
expect(res.maxQueryLimit).to.equal(123);
Expand Down

0 comments on commit 1455204

Please sign in to comment.