From 3155d2015976e82265538d4034b5b30bd56bf837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20APLAK?= Date: Tue, 13 Dec 2022 17:55:18 +0300 Subject: [PATCH] test: fix tests --- package-lock.json | 2 +- package.json | 2 +- src/Helper/source/index.spec.ts | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index fc9c2f52..762318fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "superplate-cli", - "version": "1.11.4", + "version": "1.11.5", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 63b9a48b..e5bb74af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superplate-cli", - "version": "1.11.4", + "version": "1.11.5", "description": "The frontend boilerplate with superpowers", "license": "MIT", "repository": { diff --git a/src/Helper/source/index.spec.ts b/src/Helper/source/index.spec.ts index fb9e4bc9..d8b888ac 100644 --- a/src/Helper/source/index.spec.ts +++ b/src/Helper/source/index.spec.ts @@ -1,9 +1,7 @@ import { promisify } from "util"; import { get_source } from "./"; jest.mock("util", () => ({ - promisify: jest.fn(() => { - throw new Error(); - }), + promisify: jest.fn(), inherits: () => ({ custom: {}, }),