Skip to content

Commit 118b5d3

Browse files
committed
fix duplicate name in test
1 parent 647206c commit 118b5d3

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

test/integration-tests/org/postRegistryOrgUsers.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ const app = require('../../../src/index.js')
99
describe('Testing user can be created by org with /registryOrg endpoint', () => {
1010
context('Positive Tests', () => {
1111
it('Allows creation of user by org', async () => {
12-
// Create a new org
13-
await chai.request(app)
14-
.post('/api/registryOrg')
15-
.set(constants.headers)
16-
.send({ long_name: 'Test Registry Create Org', short_name: 'testOrg' })
17-
1812
const payload = {
19-
user_id: 'fakeregistryuser999',
13+
user_id: 'testUser',
2014
name: {
21-
first: 'TestFirstName',
15+
first: 'TestFirst',
2216
last: 'FakeLastName',
2317
middle: 'Cool',
2418
suffix: 'Mr.'
@@ -31,7 +25,7 @@ describe('Testing user can be created by org with /registryOrg endpoint', () =>
3125
// Create a new user by org
3226
const res = await chai
3327
.request(app)
34-
.post('/api/registryOrg/testOrg/user')
28+
.post('/api/registryOrg/win_5/user')
3529
.set(constants.headers)
3630
.send(payload)
3731

@@ -73,7 +67,7 @@ describe('Testing user can be created by org with /registryOrg endpoint', () =>
7367
}
7468
await chai
7569
.request(app)
76-
.post('/api/registryOrg/testOrg/user')
70+
.post('/api/registryOrg/win_5/user')
7771
.set(constants.nonSecretariatUserHeaders)
7872
.send(payload)
7973
.then((res, err) => {
@@ -97,7 +91,7 @@ describe('Testing user can be created by org with /registryOrg endpoint', () =>
9791
}
9892
await chai
9993
.request(app)
100-
.post('/api/registryOrg/testOrg/user')
94+
.post('/api/registryOrg/win_5/user')
10195
.set(constants.headers)
10296
.send(payload)
10397
.then((res, err) => {

0 commit comments

Comments
 (0)