1.0.1 • Published 3 years ago

node-abstracts v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

node-abstracts

Clone and then...

$ npm install
$ npm run test

> node-abstracts@1.0.1 test
> ./node_modules/mocha/bin/mocha --require @babel/register --reporter spec ./test/**/*.test.js

  Enumerated Types
    WeekdaysEnum
      ✔ should have 7 days, even including a day like Monday
    WorkflowItemStateEnum
      ✔ should have 4 states: QUEUED, ASSIGNED, ESCALATED, COMPLETED

  WorkflowIterators
    PlainWorkflowIterator
      ✔ should be able to iterate a plain workflow
      ✔ should be done when its done, with 0 remaining
      ✔ should not be able to iterate a plain workflow beyond lifecycle
    EscalationWorkflowIterator
      ✔ should be able to iterate an escalation workflow
      ✔ should be done when its done, with 0 remaining
      ✔ should not be able to iterate an escalation workflow beyond lifecycle


  8 passing (8ms)