File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments