Skip to content

Commit

Permalink
chore: 🤖 more prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh authored and mfw78 committed Jun 7, 2022
1 parent 6808a6a commit ca3f032
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions test/repository.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { FacilityRuleRepository, SpaceRuleRepository } from '../src/repositories/RuleRepository';
import {
FacilityRuleRepository,
SpaceRuleRepository
} from '../src/repositories/RuleRepository';
import { NoticeRequiredRule, Rates } from '../src/proto/lpms';
import { expect } from 'chai';
import { SpaceRateRepository } from '../src/repositories/ItemRateRepository';
Expand All @@ -19,10 +22,12 @@ describe('facility repository rule test', async () => {
});

it('get rule', async () => {
const rule = await facilityRuleRepository.getRule('notice_required')as
NoticeRequiredRule;
const spaceRule = await spaceRuleRepository.getRule('notice_required') as
NoticeRequiredRule;
const rule = (await facilityRuleRepository.getRule(
'notice_required'
)) as NoticeRequiredRule;
const spaceRule = (await spaceRuleRepository.getRule(
'notice_required'
)) as NoticeRequiredRule;

expect(rule.numDays).to.be.equal(10);
expect(spaceRule.numDays).to.be.equal(10);
Expand Down Expand Up @@ -50,7 +55,7 @@ describe('repository rate test', async () => {
it('set rate', async () => {
const rate: Rates = {
cost: 100
}
};

await spaceRuleRepository.setRateDefault(rate);
});
Expand Down

0 comments on commit ca3f032

Please sign in to comment.