Skip to content

Commit

Permalink
test: variable tab app menu
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul99ahad committed Oct 29, 2024
1 parent 3b505b0 commit d632e5d
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions client/src/app/__tests__/AppSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2085,6 +2085,60 @@ describe('<App>', function() {

});

describe('variable-outline', function() {

describe('#triggerAction', function() {

it('should open', function() {

// given
const { app } = createApp();

app.setLayout({
panel: {
open: false,
}
});

// when
app.triggerAction('open-variables-panel');

// then
expect(app.state.layout).to.eql({
panel: {
open: true,
tab: 'variable-outline'
}
});
});


it('should close', function() {

// given
const { app } = createApp();

app.setLayout({
panel: {
open: true,
}
});

// when
app.triggerAction('open-variables-panel');

// then
expect(app.state.layout).to.eql({
panel: {
open: false
}
});
});

});

});

});


Expand Down

0 comments on commit d632e5d

Please sign in to comment.