-
Notifications
You must be signed in to change notification settings - Fork 18
Mocks
Florian Süsstrunk edited this page Oct 20, 2016
·
17 revisions
adding a mock by creating a file called {{modulename}}.mock.js
Example: ./source/demo/modules/slideshow/slideshow.mock.js
mocks are written in javascript and must return an object or an array. the gulp task for mocks transpiles the mock-data to JSON and writes it into the builded module-folder. e.g. /build/modules/slideshow/slideshow.json