peteraleksa / inventory Goto Github PK
View Code? Open in Web Editor NEWsimple inventory system using mean
simple inventory system using mean
0 passing (1s)
2 failing
Model Inventory: Method Save should be able to save without
problems:
AssertionError: expected { message: 'Cast to date failed for value "function now()
{ [native code] }" at path "lastChecked"',
name: 'CastError',
type: 'date',
value: [Function: now],
path: 'lastChecked' } to not exist
at inventory/test/inventory/model.js:62:32
at handleError (inventory/node_modules/mongoose/node_modules/hooks
/hooks.js:92:18)
at _next (inventory/node_modules/mongoose/node_modules/hooks/hooks.js:34:22)
at fnWrapper (inventory/node_modules/mongoose/node_modules/hooks
/hooks.js:159:8)
at handleSave (inventory/node_modules/mongoose/lib/document.js:1279:16)
at handleError (inventory/node_modules/mongoose/node_modules/hooks
/hooks.js:92:18)
at _next (inventory/node_modules/mongoose/node_modules/hooks/hooks.js:34:22)
at fnWrapper (inventory/node_modules/mongoose/node_modules/hooks
/hooks.js:159:8)
at EmbeddedDocument.checkForExistingErrors (inventory/node_modules
/mongoose/lib/document.js:1303:7)
at _next (inventory/node_modules/mongoose/node_modules/hooks/hooks.js:50:30)
Model Inventory: "after all" hook:
TypeError: Object { store: 'Norberts Test Store',
_id: 52e03e364d68108d05000003,
items:
[ { product: 'Pepperoni',
qty: 7,
supplier: 'Meats and stuff',
SKU: 5768575,
price: 5,
_id: 52e03e364d68108d05000005 },
{ product: 'Fresh Mozarella',
qty: 3,
supplier: 'The Cheese Wiz',
SKU: 576777,
price: 3,
_id: 52e03e364d68108d05000004 }
],
updated: Wed Jan 22 2014 16:55:02 GMT-0500 (EST) }
has no method 'exec'
at Context. (inventory/test/inventory/model.js:87:32)
at Hook.Runnable.run (inventory/node_modules/grunt-mocha-test/node_modules
/mocha/lib/runnable.js:194:15)
at next(inventory/node_modules/grunt-mocha-test/node_modules/mocha
/lib/runner.js:249:10)
at Object._onImmediate (inventory/node_modules/grunt-mocha-test/node_modules
/mocha/lib/runner.js:261:5)
at processImmediate as _immediateCallback
Fatal error: Cannot call method 'apply' of undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.