factory-mate
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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`: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13114
13
90
13