mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-31 01:16:01 +02:00
fix: upgrade faker to version 5.5.3
This commit is contained in:
parent
279f19fe89
commit
b89bf03d1f
@ -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",
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
@ -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(),
|
||||
@ -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(),
|
||||
@ -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(),
|
||||
@ -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(),
|
||||
@ -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(),
|
||||
|
@ -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==
|
||||
|
Loading…
Reference in New Issue
Block a user