├── .gitignore ├── babel.config.json ├── package.json ├── src ├── async.js ├── database.js ├── exception.js ├── product-service.js ├── sayHello.js ├── sum.js ├── user-repository.js └── user-service.js ├── test ├── array.test.js ├── async.test.js ├── concurrent.test.js ├── each-object.test.js ├── each.test.js ├── equal.test.js ├── exception.test.js ├── failing.test.js ├── it.test.js ├── mock-async-function.test.js ├── mock-class.test.js ├── mock-function.test.js ├── mock-matchers.test.js ├── mock-modules.test.js ├── mock-partial-class.test.js ├── mock-partial-modules.test.js ├── not.test.js ├── number.test.js ├── only.test.js ├── scoping.test.js ├── setup.test.js ├── skip.test.js ├── string.test.js ├── sum.test.js ├── todo.test.js └── truthiness.test.js └── vendor └── contoh.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | coverage 3 | node_modules 4 | -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/babel.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/package.json -------------------------------------------------------------------------------- /src/async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/async.js -------------------------------------------------------------------------------- /src/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/database.js -------------------------------------------------------------------------------- /src/exception.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/exception.js -------------------------------------------------------------------------------- /src/product-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/product-service.js -------------------------------------------------------------------------------- /src/sayHello.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/sayHello.js -------------------------------------------------------------------------------- /src/sum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/sum.js -------------------------------------------------------------------------------- /src/user-repository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/user-repository.js -------------------------------------------------------------------------------- /src/user-service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/src/user-service.js -------------------------------------------------------------------------------- /test/array.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/array.test.js -------------------------------------------------------------------------------- /test/async.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/async.test.js -------------------------------------------------------------------------------- /test/concurrent.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/concurrent.test.js -------------------------------------------------------------------------------- /test/each-object.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/each-object.test.js -------------------------------------------------------------------------------- /test/each.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/each.test.js -------------------------------------------------------------------------------- /test/equal.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/equal.test.js -------------------------------------------------------------------------------- /test/exception.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/exception.test.js -------------------------------------------------------------------------------- /test/failing.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/failing.test.js -------------------------------------------------------------------------------- /test/it.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/it.test.js -------------------------------------------------------------------------------- /test/mock-async-function.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-async-function.test.js -------------------------------------------------------------------------------- /test/mock-class.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-class.test.js -------------------------------------------------------------------------------- /test/mock-function.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-function.test.js -------------------------------------------------------------------------------- /test/mock-matchers.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-matchers.test.js -------------------------------------------------------------------------------- /test/mock-modules.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-modules.test.js -------------------------------------------------------------------------------- /test/mock-partial-class.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-partial-class.test.js -------------------------------------------------------------------------------- /test/mock-partial-modules.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/mock-partial-modules.test.js -------------------------------------------------------------------------------- /test/not.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/not.test.js -------------------------------------------------------------------------------- /test/number.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/number.test.js -------------------------------------------------------------------------------- /test/only.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/only.test.js -------------------------------------------------------------------------------- /test/scoping.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/scoping.test.js -------------------------------------------------------------------------------- /test/setup.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/setup.test.js -------------------------------------------------------------------------------- /test/skip.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/skip.test.js -------------------------------------------------------------------------------- /test/string.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/string.test.js -------------------------------------------------------------------------------- /test/sum.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/sum.test.js -------------------------------------------------------------------------------- /test/todo.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/todo.test.js -------------------------------------------------------------------------------- /test/truthiness.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/test/truthiness.test.js -------------------------------------------------------------------------------- /vendor/contoh.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-unit-test/HEAD/vendor/contoh.js --------------------------------------------------------------------------------