Change 'mock = require("TinyMockJS").mock' to 'mock = require("TinyMockJS")