Mock bigDecimal methods in specs

This commit is contained in:
saunmanoj888
2022-10-25 00:05:31 +05:30
parent ee8454bd2c
commit 490c5afc59
4 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ describe "BulkProducts service", ->
beforeEach ->
module "ofn.admin"
window.bigDecimal = jasmine.createSpyObj "bigDecimal", ["round"]
window.bigDecimal.round.and.callFake (a, b) -> a.toFixed(b)
beforeEach inject (_BulkProducts_, _$httpBackend_) ->
BulkProducts = _BulkProducts_