New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-unit-test-helper

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-unit-test-helper - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

.prettierignore

8

.vscode/extensions.json

@@ -5,4 +5,10 @@ {

"amatiasq.sort-imports",
"esbenp.prettier-vscode"
"esbenp.prettier-vscode",
"DSKWRK.vscode-generate-getter-setter",
"johnpapa.vscode-peacock",
"ms-azuretools.vscode-docker",
"ms-vscode.vscode-typescript-tslint-plugin",
"PKief.material-icon-theme",
"WallabyJs.quokka-vscode"
]
}

@@ -1,5 +0,6 @@

// Place your settings in this file to overwrite the default settings
{
"editor.tabSize": 2,
"editor.rulers": [90],
"editor.rulers": [
90
],
"files.trimTrailingWhitespace": true,

@@ -15,3 +16,30 @@ "files.exclude": {

}
},
"debug.openExplorerOnEnd": true,
"editor.autoIndent": "full",
"editor.cursorBlinking": "solid",
"editor.formatOnType": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.minimap.enabled": false,
"editor.codeActionsOnSave": {
"source.organizeImports": false,
"source.fixAll.tslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"explorer.openEditors.visible": 0,
"files.autoSave": "onFocusChange",
"git.confirmSync": false,
"git.enableSmartCommit": true,
"npm.enableScriptExplorer": true,
"typescript.tsdk": "node_modules/typescript/lib",
"workbench.iconTheme": "material-icon-theme",
"auto-close-tag.SublimeText3Mode": true,
"html.autoClosingTags": false,
"gitlens.menus": {
"editorGroup": false
}
}

2

dist/autoSpyObj.d.ts

@@ -6,2 +6,2 @@ export declare enum ObservablePropertyStrategy {

}
export declare function autoSpyObj(classUnderTest: Function, spyProperties?: string[], observableStrategy?: ObservablePropertyStrategy): any;
export declare function autoSpyObj(classUnderTest: () => void, spyProperties?: string[], observableStrategy?: ObservablePropertyStrategy): any;

@@ -1,6 +0,9 @@

export * from './addProperty';
export * from './createComponentMock';
export * from './getAll';
export * from './autoSpyObj';
export * from './injectHelper';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./addProperty"), exports);
tslib_1.__exportStar(require("./createComponentMock"), exports);
tslib_1.__exportStar(require("./getAll"), exports);
tslib_1.__exportStar(require("./autoSpyObj"), exports);
tslib_1.__exportStar(require("./injectHelper"), exports);
//# sourceMappingURL=index.js.map
{
"name": "angular-unit-test-helper",
"version": "9.0.0",
"version": "9.1.0",
"description": "Helper functions to help write unit tests in Angular using mocks and spies",

@@ -8,13 +8,24 @@ "main": "dist/index.js",

"scripts": {
"test": "echo 'I need tests'",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=./jasmine.json",
"test:karma": "karma start",
"dev": "webpack-dev-server --inline --hot",
"build:webpack": "webpack -p",
"standardize": "import-sort --write \"{lib,tests}/**/*.ts\" && prettier-tslint fix \"{lib,tests}/**/*.ts\"",
"standardize:ci": "import-sort -l \"{lib,tests}/**/*.ts\" && prettier-tslint check \"{lib,tests}/**/*.ts\"",
"build": "tsc",
"pretest": "npm run build",
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.src.json",
"pretest": "npm run build && npm run build:test",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
"postpublish": "git push origin --all; git push origin --tags",
"style": "import-sort -l \"{src,tests}/**/*.ts\" && prettier --check \"{src,tests}/**/*.ts\"",
"style:fix": "import-sort --write \"{src,tests}/**/*.ts\" && prettier --write \"{src,tests}/**/*.ts\"",
"lint": "tslint --config tslint.json --project .",
"lint:fix": "tslint --config tslint.json --fix --project .",
"prestart": "npm run build",
"start": "env-cmd node dist/index.js",
"build:test": "tsc -p tests/tsconfig.spec.json",
"prepublishOnly": "npm run test",
"prepare": "npm run build",
"test:ci": "ts-node ./node_modules/jasmine-xml-reporter/bin/jasmine.js --config=./jasmine.json --junitreport --output=test_results/",
"test:nyc": "nyc ts-node node_modules/jasmine/bin/jasmine --config=./jasmine.json --cache=false",
"init:env": "init-dev-env generate-dot-env example.env -f"
},

@@ -41,4 +52,8 @@ "repository": {

"@angular/core": "^9.0.5",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/jasmine": "^3.5.8",
"@types/node": "^13.9.0",
"cross-conf-env": "^1.1.2",
"dev-norms": "^1.7.0",
"env-cmd": "^10.1.0",
"import-sort": "^6.0.0",

@@ -48,4 +63,7 @@ "import-sort-cli": "^6.0.0",

"import-sort-style-module": "^6.0.0",
"init-dev-env": "^1.0.0",
"jasmine": "^3.4.0",
"jasmine-core": "^3.5.0",
"jasmine-node": "^3.0.0",
"jasmine-xml-reporter": "^1.2.1",
"karma": "^4.4.1",

@@ -55,5 +73,7 @@ "karma-chrome-launcher": "^3.1.0",

"karma-webpack": "^4.0.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.0.0",
"prettier": "^1.19.1",
"prettier-tslint": "^0.4.2",
"rimraf": "^3.0.2",
"rxjs": "^6.4.0",

@@ -64,2 +84,5 @@ "source-map-support": "^0.5.16",

"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0",
"tslint-etc": "^1.10.1",
"tslint-plugin-prettier": "^2.1.0",
"typescript": "^3.7.5",

@@ -66,0 +89,0 @@ "webpack": "^4.42.0",

@@ -1,2 +0,2 @@

describe('addProperty', function() {
describe('addProperty', () => {
it('should ...', () => {

@@ -3,0 +3,0 @@ const unexpected = 'a'

@@ -7,17 +7,9 @@ {

"importHelpers": true,
"typeRoots": [
"node_modules/@types"
],
"target": "es5",
"module": "esnext",
"typeRoots": ["node_modules/@types"],
"target": "es2015",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"lib": [
"dom",
"es2018"
],
"types": [
"jasmine",
"node"
],
"lib": ["dom", "es2018", "es2015", "es2016", "es2017", "es2019"],
"types": ["jasmine", "node"],
"declaration": true,

@@ -27,25 +19,14 @@ "outDir": "./dist",

"noImplicitAny": true,
/* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true,
/* Enable strict null checks. */
"noImplicitThis": true,
/* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true,
/* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
"noUnusedLocals": true,
/* Report errors on unused locals. */
"noUnusedParameters": true,
/* Report errors on unused parameters. */
"noImplicitReturns": true,
/* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true,
/* Report errors for fallthrough cases in switch statement. */
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"include": [
"./lib"
]
}
"include": ["./src"]
}
{
"extends": "tslint:recommended",
"extends": [
"tslint:recommended",
"tslint-etc",
"tslint-config-prettier",
"tslint-plugin-prettier"
],
"rules": {

@@ -16,3 +21,3 @@ "array-type": false,

"max-line-length": [
true,
false,
90

@@ -65,4 +70,6 @@ ],

"never"
]
],
"no-unused-declaration": true,
"prettier": true
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc