Skip to content

Commit

Permalink
fix(formula): use string to create StringValueObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir committed Mar 16, 2024
1 parent 40f37a4 commit af4e02c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Test mod function', () => {
});
it('Number is single string number, power is single string number', () => {
const number = new StringValueObject('5');
const power = new NumberValueObject('2');
const power = new StringValueObject('2');
const result = textFunction.calculate(number, power);
expect(result.getValue()).toBe(1);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ describe('Test product function', () => {
expect(result.getValue()).toBe(2);
});
it('Var1 is string number, var2 is string number', () => {
const var1 = new NumberValueObject('1');
const var2 = new NumberValueObject('2');
const var1 = new StringValueObject('1');
const var2 = new StringValueObject('2');
const result = textFunction.calculate(var1, var2);
expect(result.getValue()).toBe(2);
});
Expand Down

0 comments on commit af4e02c

Please sign in to comment.