Giter Site home page Giter Site logo

inventory's People

Contributors

peteraleksa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

cojocariuovidiu

inventory's Issues

/test/inventory/model.js cast fail for lastChecked

Model Inventory: Method Save 1) should be able to save without problems 2) "after all" hook

0 passing (1s)
2 failing

  1. 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)

  2. 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.