From e1865a9332c6b84415570f11f88d520aa06056a2 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:05:32 -0400 Subject: [PATCH] fix(test): `import jasmine top of spec file` --- package-lock.json | 8 ++++---- package.json | 2 +- src/app/app.component.spec.ts | 10 +--------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index e68491d..21bf241 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@angular/router": "^16.2.5", "@types/chrome": "^0.0.246", "@types/jasmine": "^4.3.6", - "@types/node": "^18.17.18", + "@types/node": "^20.6.3", "@types/nw.js": "^0.13.17", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", @@ -4164,9 +4164,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.17.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.18.tgz", - "integrity": "sha512-/4QOuy3ZpV7Ya1GTRz5CYSz3DgkKpyUptXuQ5PPce7uuyJAOR7r9FhkmxJfvcNUXyklbC63a+YvB3jxy7s9ngw==", + "version": "20.6.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.6.3.tgz", + "integrity": "sha512-HksnYH4Ljr4VQgEy2lTStbCKv/P590tmPe5HqOnv9Gprffgv5WXAY+Y5Gqniu0GGqeTCUdBnzC3QSrzPkBkAMA==", "dev": true }, "node_modules/@types/nw.js": { diff --git a/package.json b/package.json index b02dae9..818c856 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@angular/router": "^16.2.5", "@types/chrome": "^0.0.246", "@types/jasmine": "^4.3.6", - "@types/node": "^18.17.18", + "@types/node": "^20.6.3", "@types/nw.js": "^0.13.17", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index b9c4ace..a0ad974 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,14 +1,6 @@ +import 'jasmine'; import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; -import * as jasmine from "jasmine-core"; - -const { - beforeEach, - describe, - expect, - it, -} = jasmine.NoGlobals(); - import { AppComponent } from './app.component'; describe('AppComponent', () => {