Skip to content

Commit ad6e12a

Browse files
added valid assertions for the test
1 parent ed80ad5 commit ad6e12a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

test/api/team-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ describe('Teams API Test', () => {
3131
})
3232
it('should create new team when required object is passed', async () => {
3333
const response = await makeTeams(organizationUid).create({
34-
name: 'test_team11111',
34+
name: 'test_team',
3535
users: [],
3636
stackRoleMapping: [],
37-
organizationRole: 'blt09e5dfced326aaea' })
37+
organizationRole: 'organizationRole' })
3838
expect(response.uid).not.to.be.equal(null)
3939
expect(response.name).not.to.be.equal(null)
4040
expect(response.stackRoleMapping).not.to.be.equal(null)

test/unit/taxonomy-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ describe('Contentstack Taxonomy test', () => {
137137
}).terms()
138138
.create()
139139
.then((term) => {
140-
console.log(term)
140+
expect(term.taxonomy_uid).to.be.not.equal(undefined)
141+
expect(term.uid).to.be.equal('UID')
142+
expect(term.name).to.be.equal('name')
141143
done()
142144
})
143145
.catch(done)

test/unit/team-stack-role-mapping-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ describe('Contentstack Team Stack Role Mapping test', () => {
1010
var mock = new MockAdapter(Axios)
1111
mock.onGet(`/organizations/organization_uid/teams/team_uid/stack_role_mappings`).reply(200, stackRoleMappingMock)
1212
makeStackRoleMapping().fetchAll()
13-
.then((roles) => {
14-
console.log('🚀 ~ file: team-stack-role-mapping-test.js:14 ~ .then ~ roles:', roles)
13+
.then((response) => {
14+
expect(response.stackRoleMappings).to.be.not.equal(undefined)
1515
done()
1616
})
1717
.catch(done)

0 commit comments

Comments
 (0)