Skip to content

Commit

Permalink
fix: config service import
Browse files Browse the repository at this point in the history
  • Loading branch information
chhabra1112 committed Jan 18, 2025
1 parent adf90f7 commit 8cc6a3c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions packages/core/tests/helpers/arrayHelper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ jest.mock('../../lib/config/service');
describe('Array Helper', () => {
beforeEach(async () => {});

// it('should throw exception', () => {
// const arr = {};
// expect(Arr.toObj(arr as [], [])).toThrow(InvalidValue);
// });

it('should return object', () => {
const arr = [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/helpers/numberHelper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Num } from '../../lib';

jest.mock('../../../lib/config/service');
jest.mock('../../lib/config/service');

describe('Numbers Helper', () => {
beforeEach(async () => {});
Expand Down
7 changes: 1 addition & 6 deletions packages/core/tests/helpers/objectHelper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import { InvalidValue } from '../../lib';
import { Obj } from '../../lib';

jest.mock('../../config/service');
jest.mock('../../lib/config/service');

describe('Object Helper', () => {
beforeEach(async () => {});

// it('should throw exception', () => {
// const arr = {};
// expect(Arr.toObj(arr as [], [])).toThrow(InvalidValue);
// });

it('should return flattened object with dot notation', () => {
const obj = {
product: { price: 20, tags: [{ name: 'good' }] },
Expand Down

0 comments on commit 8cc6a3c

Please sign in to comment.