Skip to content

Commit

Permalink
Added unit tests for secret type variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-sharma-08 committed Sep 25, 2023
1 parent 520d5aa commit a0d75db
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unit/variable-scope.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,18 @@ describe('VariableScope', function () {
expect(scope.mutations.stream[0].length).to.equal(3);
});

it('should track set operations without datatype when datatype other than secret', function () {
var scope = new VariableScope();

scope.enableTracking();

scope.set('foo', 'bar', 'string');

expect(scope).to.have.property('mutations');
expect(scope.mutations.count()).to.equal(1);
expect(scope.mutations.stream[0].length).to.equal(2);
});

it('should track unset operations', function () {
var scope = new VariableScope({
values: [{
Expand Down

0 comments on commit a0d75db

Please sign in to comment.