Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should provide fake seed for test environment #5

Open
lykmapipo opened this issue Jan 15, 2020 · 0 comments
Open

Should provide fake seed for test environment #5

lykmapipo opened this issue Jan 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lykmapipo
Copy link
Member

lykmapipo commented Jan 15, 2020

Motivation:

describe('Event', () => {
  let type;

  before(done => {
    withEventType(type, done);
  });

  it('should create an event', done => {
    const event = Event.fakeWith({ type });
    event.save((error, created) => {
      expect(error).to.not.exist;
      expect(created).to.exist;
      expect(created.type).to.exist.and.be.eql.to(type);
      done(error, saved);
    });
  });

  after(done => clear());
});
@lykmapipo lykmapipo added the enhancement New feature or request label Jan 15, 2020
@lykmapipo lykmapipo self-assigned this Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant