Skip to content

Commit

Permalink
fix: upgrade faker to version 5.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed May 21, 2021
1 parent 279f19f commit b89bf03
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"faker": "^5.3.1",
"faker": "^5.5.3",
"fetch-mock": "^9.11.0",
"husky": "^4.2.3",
"lint-staged": "^10.0.7",
Expand Down
4 changes: 2 additions & 2 deletions src/test/e2e/api/client/register.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ test.serial.skip('Should handle a massive bulk registration', async t => {
while (clients.length < 2000) {
const clientRegistration = {
appName: faker.internet.domainName(),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
sdkVersion: version,
icon: '',
description: faker.company.catchPhrase(),
Expand Down
8 changes: 4 additions & 4 deletions src/test/e2e/services/client-metrics-service.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ test.serial('Apps registered should be announced', async t => {
t.plan(3);
const clientRegistration = {
appName: faker.internet.domainName(),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
icon: '',
description: faker.company.catchPhrase(),
color: faker.internet.color(),
};
const differentClient = {
appName: faker.lorem.slug(2),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
icon: '',
description: faker.company.catchPhrase(),
color: faker.internet.color(),
Expand Down
20 changes: 10 additions & 10 deletions src/test/e2e/stores/client-application-store.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ test.afterEach(async () => {
test.serial("Should be able to keep track of what we've announced", async t => {
const clientRegistration = {
appName: faker.internet.domainName(),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
sdkVersion: '3.11.2',
icon: '',
description: faker.company.catchPhrase(),
Expand All @@ -45,10 +45,10 @@ test.serial(
async t => {
const clientRegistration = {
appName: faker.internet.domainName(),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
sdkVersion: '3.11.2',
icon: '',
description: faker.company.catchPhrase(),
Expand All @@ -73,10 +73,10 @@ test.serial(
while (clients.length < 10) {
const clientRegistration = {
appName: `${faker.internet.domainName()}_${clients.length}`,
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
sdkVersion: '3.11.2',
icon: '',
description: faker.company.catchPhrase(),
Expand All @@ -99,10 +99,10 @@ test.serial(
async t => {
const clientRegistration = {
appName: faker.internet.domainName(),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
interval: faker.random.number(),
interval: faker.datatype.number(),
sdkVersion: '3.11.2',
icon: '',
description: faker.company.catchPhrase(),
Expand All @@ -125,7 +125,7 @@ test.serial(
test.serial('Merge keeps value for single row in database', async t => {
const clientRegistration = {
appName: faker.internet.domainName(),
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
icon: faker.internet.color(),
Expand All @@ -149,7 +149,7 @@ test.serial('Multi row merge also works', async t => {
while (clients.length < 10) {
const clientRegistration = {
appName: `${faker.internet.domainName()}_${clients.length}`,
instanceId: faker.random.uuid(),
instanceId: faker.datatype.uuid(),
strategies: ['default'],
started: Date.now(),
icon: faker.internet.color(),
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2478,7 +2478,7 @@ eyes@0.1.x:
resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0"
integrity sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=

faker@^5.3.1:
faker@^5.5.3:
version "5.5.3"
resolved "https://registry.yarnpkg.com/faker/-/faker-5.5.3.tgz#c57974ee484431b25205c2c8dc09fda861e51e0e"
integrity sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g==
Expand Down

0 comments on commit b89bf03

Please sign in to comment.