Skip to content

Commit d97d08a

Browse files
committed
update unit tests
1 parent b74abdb commit d97d08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib/gitlab-ci-project.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('gitlab-ci-project-handler', () => {
6767
.reply(200, mockResponse);
6868

6969
const handler = gitlabCIProject('https://src.temando.io/khoa.tran/temando-field-manual-tome', gitlabToken);
70-
const variable = await handler.setVariable('ENV', 'env2');
70+
const variable = await handler.createVariable('ENV', 'env2');
7171

7272
expect(variable.key).to.equal('ENV');
7373
expect(variable.value).to.equal('env2');
@@ -87,7 +87,7 @@ describe('gitlab-ci-project-handler', () => {
8787
.reply(200, mockResponse);
8888

8989
const handler = gitlabCIProject('https://src.temando.io/khoa.tran/temando-field-manual-tome', gitlabToken);
90-
const variable = await handler.setVariable('MSG', { hello: 'world' });
90+
const variable = await handler.createVariable('MSG', { hello: 'world' });
9191

9292
expect(variable.key).to.equal('MSG');
9393
expect(variable.value).to.equal('{"hello":"world"}');

0 commit comments

Comments
 (0)