Skip to content

Commit 12c475f

Browse files
test: ✅ updated response fetchAll unit test case
1 parent c3cc920 commit 12c475f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/team-test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import { systemUidMock, teamsMock, noticeMock, teamUsersMock, stackRoleMappingMo
88
describe('Contentstack Team test', () => {
99
it('should get all the teams when correct organization uid is passed', done => {
1010
var mock = new MockAdapter(Axios)
11-
mock.onGet(`/organizations/organization_uid/teams`).reply(200, [teamsMock])
11+
mock.onGet(`/organizations/organization_uid/teams`).reply(200, {
12+
count: 17,
13+
teams: [teamsMock]
14+
})
1215
makeTeams().fetchAll()
1316
.then((teams) => {
1417
expect(teams.items[0].uid).to.be.equal('UID')

0 commit comments

Comments
 (0)