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

jasmine-mock-factory

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-mock-factory - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

dist/index.d.ts

4

CHANGELOG.md

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

# 3.0.0
* The package no longer includes raw *.ts file. Instead, it includes compiled js with d.ts typing file. This decouples users' tsconfig file from the library's own tsconfig file.
* Now supports Typescript >= 3.0.0, Jasmine >= 2.9.0,
# 2.1.0

@@ -2,0 +6,0 @@ * [Typescript 2.9](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html) supports `number` and `symbol` named properties. Since Jasmine can only spy on `string` named properties according to its [official spec](https://jasmine.github.io/api/3.3/global.html#spyOnProperty), Jasmine-mock-factory will return undefined when user reads those properties and ignores any write operations. With this update, a warning message will be displayed when user tries to spy on a `number` or `symbol` named properties.

49

package.json
{
"name": "jasmine-mock-factory",
"version": "2.1.2",
"version": "3.0.0",
"description": "A Jasmine helper for creating mocked classes",

@@ -8,4 +8,7 @@ "license": "MIT",

"scripts": {
"test": "ng test",
"lint": "ng lint --type-check"
"start": "npm run build && npm run test",
"start:once": "npm run build && npm run test:once",
"build": "tsc",
"test:once": "karma start karma.conf.js --single-run",
"test": "karma start karma.conf.js"
},

@@ -18,43 +21,25 @@ "private": false,

"dependencies": {
"@types/jasmine": "2.5.45"
"@types/jasmine": "~3.3.10"
},
"peerDependencies": {
"jasmine-core": "~2.6.2"
"jasmine-core": ">=2.9.0"
},
"devDependencies": {
"@angular/cli": "1.1.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/language-service": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"codelyzer": "~3.0.1",
"core-js": "^2.6.5",
"coveralls": "^2.13.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-firefox-launcher": "^1.0.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"rxjs": "^5.1.0",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.9.0",
"zone.js": "^0.8.29"
"coveralls": "^3.0.3",
"jasmine-core": "~3.3.0",
"karma": "~4.0.1",
"karma-chrome-launcher": "~2.2.0",
"karma-jasmine": "~2.0.1",
"karma-typescript": "^4.0.0",
"typescript": "~3.3.3333"
},
"keywords": [
"mock",
"moq",
"jasmine",
"mocking",
"unit",
"test",
"mocking",
"testing"
]
}

@@ -46,7 +46,6 @@ # Jasmine Mock Factory

This util is built with and for [Jasmine](https://jasmine.github.io/) test framework. Basic understanding of Jasmine is assumed.
* This util is built with and for [Jasmine](https://jasmine.github.io/) test framework. Basic understanding of Jasmine is assumed.
* This util requires [ES6 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy).
This util requires [ES6 Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) and only contains `*.ts` files that must be compiled with a [TypeScript](https://www.typescriptlang.org/) compiler.
## Usage

@@ -185,5 +184,4 @@

## Develope
This project is built with [Angular CLI](https://cli.angular.io/)
### Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
* `npm install` to install dev dependencies
* `npm run build` to build the library
* `npm run test` to test the library
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