github.com/elliott5/community@v0.14.1-0.20160709191136-823126fb026a/app/mirage/factories/contact.js (about)

     1  /*
     2    This is an example factory definition.
     3  
     4    Create more files in this directory to define additional factories.
     5  */
     6  import Mirage/*, {faker} */ from 'ember-cli-mirage';
     7  
     8  export default Mirage.Factory.extend({
     9    // name: 'Pete',                         // strings
    10    // age: 20,                              // numbers
    11    // tall: true,                           // booleans
    12  
    13    // email: function(i) {                  // and functions
    14    //   return 'person' + i + '@test.com';
    15    // },
    16  
    17    // firstName: faker.name.firstName,       // using faker
    18    // lastName: faker.name.firstName,
    19    // zipCode: faker.address.zipCode
    20  });