github.com/jancarloviray/community@v0.41.1-0.20170124221257-33a66c87cf2f/app/mirage/factories/contact.js (about) 1 // Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved. 2 // 3 // This software (Documize Community Edition) is licensed under 4 // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html 5 // 6 // You can operate outside the AGPL restrictions by purchasing 7 // Documize Enterprise Edition and obtaining a commercial license 8 // by contacting <sales@documize.com>. 9 // 10 // https://documize.com 11 12 /* 13 This is an example factory definition. 14 15 Create more files in this directory to define additional factories. 16 */ 17 import Mirage /*, {faker} */ from 'ember-cli-mirage'; 18 19 export default Mirage.Factory.extend({ 20 // name: 'Pete', // strings 21 // age: 20, // numbers 22 // tall: true, // booleans 23 24 // email: function(i) { // and functions 25 // return 'person' + i + '@test.com'; 26 // }, 27 28 // firstName: faker.name.firstName, // using faker 29 // lastName: faker.name.firstName, 30 // zipCode: faker.address.zipCode 31 });