Skip to content

Replace server magazine services specific data generators with fake-data-generator #160

@sgobotta

Description

@sgobotta

In the utils server we are using too many custom functions for the magazines fake data. We could replace that using the fake-data-generator as a dev-dependency.

Current models: please respect the current type of each property

magazine: {
  id: Number, // faker random number
  name: String, // faker random words
  articles: Array, // Please delete this one
  issue: String, // faker random numbers with a '#' prefix
  publisher: String // faker random words
}

Checkpoints:

  • Run the e2e tests, they should pass.
  • Run the unit tests, they should pass.
  • Magazines service: Replace ipsum dependency with fake-data-generator. Replace the magazines array with a new fake-data-generator model of 40 items (don't worry about the articles array property in each magazine, we don't need it anymore)
  • Rerun e2e tests, they must pass.
  • Rerun unit tests, they must pass.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions