Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

factory-mate

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factory-mate - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.travis.yml

2

dist/factoryMate/FactoryMate.js

@@ -37,3 +37,3 @@ "use strict";

if (clazz === undefined) {
throw new Error("Class with name " + objectName + " is not registed to FactoryMate.");
throw new Error("Class with name " + objectName + " is not registered to FactoryMate.");
}

@@ -40,0 +40,0 @@ return clazz;

{
"name": "factory-mate",
"version": "1.0.1",
"version": "1.0.2",
"description": "TypeScript library for building domain objects",

@@ -14,3 +14,5 @@ "keywords": [

"scripts": {
"lint": "tslint \"src/**/*.ts\"",
"test": "karma start",
"testSingleRun": "karma start --single-run",
"package": "tsc && npm pack"

@@ -26,5 +28,8 @@ },

"@types/jasmine": "^2.5.47",
"base64-js": "^1.0.2",
"ieee754": "^1.1.4",
"isarray": "^1.0.0",
"jasmine": "^2.6.0",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.0",

@@ -31,0 +36,0 @@ "karma-sourcemap-loader": "^0.3.7",

# FactoryMate
[![Build Status](https://travis-ci.org/rwaskiewicz/factory-mate.svg?branch=develop)](https://travis-ci.org/rwaskiewicz/factory-mate)
FactoryMate is a TypeScript-based fixture library for instatiating domain objects for testing purposes.
FactoryMate is a TypeScript-based fixture library for instantiating domain objects for testing purposes, inspired by
the [Factory Duke](https://github.com/regis-leray/factory_duke) project.

@@ -56,3 +58,3 @@ ## Getting Started

export class GroceryItemFactory {
// The @FactoryMateAware annotation will automatically call the define() funtion at runtime
// The @FactoryMateAware annotation will automatically call the define() function at runtime
public define() {

@@ -68,3 +70,3 @@ FactoryMate.define(GroceryItem, (): GroceryItem => {

### Additonal Building Methods
### Additional Building Methods
#### Overriding a Template's Variables

@@ -71,0 +73,0 @@ If for specific tests there is a need to override one or more variables in the template, this can be accomplished via an optional parameter to `build`:

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