Skip to content

Commit 97b37a6

Browse files
2.2.1
1 parent 29bf364 commit 97b37a6

File tree

5 files changed

+21
-72
lines changed

5 files changed

+21
-72
lines changed

lib/index.spec.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/index.spec.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

lib/index.spec.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-cli-js",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A node.js wrapper for the aws command line interface",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/index.spec.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,30 @@ describe('iam list-users', () => {
3939
});
4040

4141

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

46-
// expect(result).toBeTruthy();
47-
// const options = new Options(
48-
// /* accessKey */ config.accessKeyId,
49-
// /* secretKey */ config.secretAccessKey,
50-
// /* sessionToken */ 'invalid',
51-
// /* currentWorkingDirectory */ undefined,
52-
// );
46+
expect(result).toBeTruthy();
47+
const options = new Options(
48+
/* accessKey */ config.accessKeyId,
49+
/* secretKey */ config.secretAccessKey,
50+
/* sessionToken */ 'invalid',
51+
/* currentWorkingDirectory */ undefined,
52+
);
5353

5454

55-
// const aws = new Aws(options);
55+
const aws = new Aws(options);
5656

57-
// let flag = false;
58-
// return aws.command('iam list-users').then((data: any) => {
59-
// flag = true;
60-
// }).catch((r) => {
61-
// expect(flag).toBeFalsy();
62-
// //console.log('r = ', r);
63-
// });
57+
let flag = false;
58+
return aws.command('iam list-users').then((data: any) => {
59+
flag = true;
60+
}).catch((r) => {
61+
expect(flag).toBeFalsy();
62+
//console.log('r = ', r);
63+
});
6464

6565

66-
// });
67-
// });
66+
});
67+
});
6868

0 commit comments

Comments
 (0)