Skip to content

Commit

Permalink
2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ludwig committed Mar 3, 2021
1 parent 29bf364 commit 97b37a6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 72 deletions.
1 change: 0 additions & 1 deletion lib/index.spec.d.ts

This file was deleted.

49 changes: 0 additions & 49 deletions lib/index.spec.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/index.spec.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "aws-cli-js",
"version": "2.2.0",
"version": "2.2.1",
"description": "A node.js wrapper for the aws command line interface",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
40 changes: 20 additions & 20 deletions src/index.spec.ts
Expand Up @@ -39,30 +39,30 @@ describe('iam list-users', () => {
});


// describe('iam list-users', () => {
// it('should fail with invalid sessionToken', () => {
// const result = true;
describe('iam list-users', () => {
it('should fail with invalid sessionToken', () => {
const result = true;

// expect(result).toBeTruthy();
// const options = new Options(
// /* accessKey */ config.accessKeyId,
// /* secretKey */ config.secretAccessKey,
// /* sessionToken */ 'invalid',
// /* currentWorkingDirectory */ undefined,
// );
expect(result).toBeTruthy();
const options = new Options(
/* accessKey */ config.accessKeyId,
/* secretKey */ config.secretAccessKey,
/* sessionToken */ 'invalid',
/* currentWorkingDirectory */ undefined,
);


// const aws = new Aws(options);
const aws = new Aws(options);

// let flag = false;
// return aws.command('iam list-users').then((data: any) => {
// flag = true;
// }).catch((r) => {
// expect(flag).toBeFalsy();
// //console.log('r = ', r);
// });
let flag = false;
return aws.command('iam list-users').then((data: any) => {
flag = true;
}).catch((r) => {
expect(flag).toBeFalsy();
//console.log('r = ', r);
});


// });
// });
});
});

0 comments on commit 97b37a6

Please sign in to comment.