Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 11c4d74

Browse files
committedJan 5, 2024
test: added 1 more test case to branch test suit
1 parent f7128e7 commit 11c4d74

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed
 

‎test/sanity-check/api/branch-test.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('Branch api Test', () => {
4242
.catch(done)
4343
})
4444

45-
it('should fetch stage branch from branch uid', done => {
45+
it('should fetch main branch from branch uid', done => {
4646
makeBranch(branch.uid)
4747
.fetch()
4848
.then((response) => {
@@ -57,6 +57,21 @@ describe('Branch api Test', () => {
5757
.catch(done)
5858
})
5959

60+
it('should fetch staging branch from branch uid', done => {
61+
makeBranch(stageBranch.uid)
62+
.fetch()
63+
.then((response) => {
64+
expect(response.uid).to.be.equal(stageBranch.uid)
65+
expect(response.urlPath).to.be.equal(`/stacks/branches/${stageBranch.uid}`)
66+
expect(response.source).to.be.equal(stageBranch.source)
67+
expect(response.alias).to.not.equal(undefined)
68+
expect(response.delete).to.not.equal(undefined)
69+
expect(response.fetch).to.not.equal(undefined)
70+
done()
71+
})
72+
.catch(done)
73+
})
74+
6075
it('should create Branch from staging', done => {
6176
makeBranch()
6277
.create({ branch: devBranch })

0 commit comments

Comments
 (0)
Please sign in to comment.