concept fixture in category sails

appears as: fixtures
Sails.js in Action

This is an excerpt from Manning's book Sails.js in Action.

Example 15.23. Refactoring the test user data into fixtures
module.exports = {
  username: 'testtest',
  password: 'abc123',
  email: 'test@test.com'
};

You can now require this fixture any time you need it. Next, let’s refactor the creation and authentication of a test user into its own utility method. In Sublime, open brushfire/test/integration/create-user.js, and replace the bulk of creating and authenticating a user with a new method appropriately named create-Test-User-And-Authenticate(agent, done) similar to the following.