Skip to content

Commit

Permalink
fix test nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolie Rabideau authored and Jolie Rabideau committed Mar 27, 2024
1 parent fdfa706 commit d8d962c
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/main/services/project-settings.service-host.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,18 @@ describe('getDefault', () => {
testingProjectSettingsService.getDefault(projectSettingKey, 'ParatextStandard'),
).rejects.toThrow(new RegExp(`default value for project setting ${projectSettingKey}`));
});
});

describe('registerValidator', () => {
it('should resolve', async () => {
const projectSettingKey = 'platform.fullName';
const fullNameSettingsValidator: ProjectSettingValidator<
'platform.fullName'
> = async (): Promise<boolean> => {
return true;
};
await expect(
testingProjectSettingsService.registerValidator(
projectSettingKey,
fullNameSettingsValidator,
),
).resolves.toStrictEqual({});
});
describe('registerValidator', () => {
it('should resolve', async () => {
const projectSettingKey = 'platform.fullName';
const fullNameSettingsValidator: ProjectSettingValidator<
'platform.fullName'
> = async (): Promise<boolean> => {
return true;
};
await expect(
testingProjectSettingsService.registerValidator(projectSettingKey, fullNameSettingsValidator),
).resolves.toStrictEqual({});
});
});

0 comments on commit d8d962c

Please sign in to comment.