Skip to content

Commit

Permalink
test(pharmacy) fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
mordenius committed Dec 23, 2021
1 parent 2664852 commit 1fe169f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pharmacy.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Drug, Pharmacy } from "./pharmacy";
import { Linear } from "./revaluations";

describe("Pharmacy", () => {
it("should decrease the benefit and expiresIn", () => {
expect(new Pharmacy([new Drug("test", 2, 3)]).updateBenefitValue()).toEqual(
[new Drug("test", 1, 2)]
expect(new Pharmacy([new Drug("test", 2, 3, [new Linear()])]).updateBenefitValue().toString()).toEqual(
[new Drug("test", 1, 2, [new Linear()])].toString()
);
});
});

0 comments on commit 1fe169f

Please sign in to comment.