Search is not available for this dataset
id
stringlengths
1
8
text
stringlengths
72
9.81M
addition_count
int64
0
10k
commit_subject
stringlengths
0
3.7k
deletion_count
int64
0
8.43k
file_extension
stringlengths
0
32
lang
stringlengths
1
94
license
stringclasses
10 values
repo_name
stringlengths
9
59
600
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
0
When method is restored, it should be restored on all clients
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
601
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
0
When method is restored, it should be restored on all clients
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
602
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
3
Avoid stub.restore() in restoreMethod if !stub
1
.js
js
apache-2.0
dwyl/aws-sdk-mock
603
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
3
Avoid stub.restore() in restoreMethod if !stub
1
.js
js
apache-2.0
dwyl/aws-sdk-mock
604
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
99
Merge pull request #269 from abetomo/upgrade_packages
99
.js
test
apache-2.0
dwyl/aws-sdk-mock
605
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
99
Merge pull request #269 from abetomo/upgrade_packages
99
.js
test
apache-2.0
dwyl/aws-sdk-mock
606
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Merge pull request #166 from abetomo/use_buffer_alloc
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
607
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Merge pull request #166 from abetomo/use_buffer_alloc
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
608
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
23
Adds test for setSDK() method
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
609
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
23
Adds test for setSDK() method
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
610
<NME> .travis.yml <BEF> language: node_js node_js: - "4.2.3" - "node" before_install: - pip install --user codecov after_success: <MSG> Merge pull request #131 from kevinrambaud/update-travis-node-versions Add testing on more node versions <DFF> @@ -1,7 +1,9 @@ language: node_js node_js: - - "4.2.3" - - "no...
4
Merge pull request #131 from kevinrambaud/update-travis-node-versions
2
.yml
travis
apache-2.0
dwyl/aws-sdk-mock
611
<NME> .travis.yml <BEF> language: node_js node_js: - "4.2.3" - "node" before_install: - pip install --user codecov after_success: <MSG> Merge pull request #131 from kevinrambaud/update-travis-node-versions Add testing on more node versions <DFF> @@ -1,7 +1,9 @@ language: node_js node_js: - - "4.2.3" - - "no...
4
Merge pull request #131 from kevinrambaud/update-travis-node-versions
2
.yml
travis
apache-2.0
dwyl/aws-sdk-mock
612
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ var sinon = require('sinon'); var trave...
4
Merge pull request #167 from abetomo/add_no-multi-spaces_rule
4
.js
js
apache-2.0
dwyl/aws-sdk-mock
613
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ var sinon = require('sinon'); var trave...
4
Merge pull request #167 from abetomo/add_no-multi-spaces_rule
4
.js
js
apache-2.0
dwyl/aws-sdk-mock
614
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
45
Merge pull request #257 from thomaux/fix-256
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
615
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
45
Merge pull request #257 from thomaux/fix-256
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
616
<NME> .eslintrc.json <BEF> { "env": { "browser": true, "node": true }, "globals": { "Buffer": true, "escape": true }, "rules": { "quotes": [2, "single"], "strict": 0, "curly": 0, "no-empty": 0, "no-multi-spaces": 2, "no-underscore-dangle": 0, "new-cap": 0, "dot-...
3
Add parserOptions to .eslintrc.json
0
.json
eslintrc
apache-2.0
dwyl/aws-sdk-mock
617
<NME> .eslintrc.json <BEF> { "env": { "browser": true, "node": true }, "globals": { "Buffer": true, "escape": true }, "rules": { "quotes": [2, "single"], "strict": 0, "curly": 0, "no-empty": 0, "no-multi-spaces": 2, "no-underscore-dangle": 0, "new-cap": 0, "dot-...
3
Add parserOptions to .eslintrc.json
0
.json
eslintrc
apache-2.0
dwyl/aws-sdk-mock
618
<NME> index.test-d.ts <BEF> import * as AWS from 'aws-sdk'; import { AWSError } from 'aws-sdk'; import { ListObjectsV2Request } from 'aws-sdk/clients/s3'; import { expectError, expectType } from 'tsd'; import { mock, remock, restore, setSDK, setSDKInstance } from '../index'; const awsError: AWSError = { name: 'AWS...
4
Merge pull request #260 from thomaux/fix-259
0
.ts
test-d
apache-2.0
dwyl/aws-sdk-mock
619
<NME> index.test-d.ts <BEF> import * as AWS from 'aws-sdk'; import { AWSError } from 'aws-sdk'; import { ListObjectsV2Request } from 'aws-sdk/clients/s3'; import { expectError, expectType } from 'tsd'; import { mock, remock, restore, setSDK, setSDKInstance } from '../index'; const awsError: AWSError = { name: 'AWS...
4
Merge pull request #260 from thomaux/fix-259
0
.ts
test-d
apache-2.0
dwyl/aws-sdk-mock
620
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
29
feat: setSDKInstance to allow mocking of specific aws objects
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
621
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
29
feat: setSDKInstance to allow mocking of specific aws objects
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
622
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
7
Adds method to change aws-sdk to be mocked
0
.js
js
apache-2.0
dwyl/aws-sdk-mock
623
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
7
Adds method to change aws-sdk to be mocked
0
.js
js
apache-2.0
dwyl/aws-sdk-mock
624
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
20
Refactored code to use config parameters from the real constructor
8
.js
test
apache-2.0
dwyl/aws-sdk-mock
625
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
20
Refactored code to use config parameters from the real constructor
8
.js
test
apache-2.0
dwyl/aws-sdk-mock
626
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ var sinon = require('sinon'); var trave...
4
Add no-multi-spaces rule
4
.js
js
apache-2.0
dwyl/aws-sdk-mock
627
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ var sinon = require('sinon'); var trave...
4
Add no-multi-spaces rule
4
.js
js
apache-2.0
dwyl/aws-sdk-mock
628
<NME> .travis.yml <BEF> language: node_js node_js: - "node" - "6" - "8" - "10" - "12" <MSG> Remove Node.js6 from travis.yml * Node.js6 is EOL. * https://github.com/nodejs/Release * Because tap does not support Node.js 6 or less. * https://github.com/tapjs/node-tap/blob/master/package.json#L11-L13 <...
0
Remove Node.js6 from travis.yml
1
.yml
travis
apache-2.0
dwyl/aws-sdk-mock
629
<NME> .travis.yml <BEF> language: node_js node_js: - "node" - "6" - "8" - "10" - "12" <MSG> Remove Node.js6 from travis.yml * Node.js6 is EOL. * https://github.com/nodejs/Release * Because tap does not support Node.js 6 or less. * https://github.com/tapjs/node-tap/blob/master/package.json#L11-L13 <...
0
Remove Node.js6 from travis.yml
1
.yml
travis
apache-2.0
dwyl/aws-sdk-mock
630
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
28
Added documentation for this feature in README.md
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
631
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
28
Added documentation for this feature in README.md
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
632
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
Merge pull request #236 from moish83/return-stream
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
633
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
Merge pull request #236 from moish83/return-stream
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
634
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
15
Merge pull request #19 from mkjois/master
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
635
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
15
Merge pull request #19 from mkjois/master
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
636
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
Fix request.send not resolving
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
637
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
Fix request.send not resolving
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
638
<NME> .eslintrc.json <BEF> { "env": { "browser": true, "node": true }, "globals": { "Buffer": true, "escape": true }, "rules": { "quotes": [2, "single"], "strict": 0, "curly": 0, "no-empty": 0, "no-multi-spaces": 2, "no-underscore-dangle": 0, ...
19
Fix .eslintrc.json indent
19
.json
eslintrc
apache-2.0
dwyl/aws-sdk-mock
639
<NME> .eslintrc.json <BEF> { "env": { "browser": true, "node": true }, "globals": { "Buffer": true, "escape": true }, "rules": { "quotes": [2, "single"], "strict": 0, "curly": 0, "no-empty": 0, "no-multi-spaces": 2, "no-underscore-dangle": 0, ...
19
Fix .eslintrc.json indent
19
.json
eslintrc
apache-2.0
dwyl/aws-sdk-mock
640
<NME> .travis.yml <BEF> language: node_js node_js: - "node" - "8" - "10" - "12" - "14" before_install: - pip install --user codecov after_success: - codecov --file coverage/lcov.info --disable search <MSG> remove old (no longer supported) versions of node.js from .travis.yml file; fixes #237 <DFF> @@ -1...
1
remove old (no longer supported) versions of node.js from .travis.yml file; fixes #237
6
.yml
travis
apache-2.0
dwyl/aws-sdk-mock
641
<NME> .travis.yml <BEF> language: node_js node_js: - "node" - "8" - "10" - "12" - "14" before_install: - pip install --user codecov after_success: - codecov --file coverage/lcov.info --disable search <MSG> remove old (no longer supported) versions of node.js from .travis.yml file; fixes #237 <DFF> @@ -1...
1
remove old (no longer supported) versions of node.js from .travis.yml file; fixes #237
6
.yml
travis
apache-2.0
dwyl/aws-sdk-mock
642
<NME> workflow.yml <BEF> name: Node CI on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: node-version: [12.x, 14.x, 16.x, 18.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 ...
1
ci: add a lint task to ci
0
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
643
<NME> workflow.yml <BEF> name: Node CI on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: node-version: [12.x, 14.x, 16.x, 18.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 ...
1
ci: add a lint task to ci
0
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
644
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
7
Add test of request.on
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
645
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
7
Add test of request.on
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
646
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Add missing closing code block end to README
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
647
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Add missing closing code block end to README
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
648
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
3
Merge pull request #126 from capaj/patch-1
2
.md
md
apache-2.0
dwyl/aws-sdk-mock
649
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
3
Merge pull request #126 from capaj/patch-1
2
.md
md
apache-2.0
dwyl/aws-sdk-mock
650
<NME> .eslintrc.json <BEF> ADDFILE <MSG> Add .eslintrc.json https://github.com/aws/aws-sdk-js/blob/master/.eslintrc <DFF> @@ -0,0 +1,23 @@ +{ + "env": { + "browser": true, + "node": true + }, + "globals": { + "Buffer": true, + "escape": true + }, + "rules": { + "quotes": [2, "single"...
23
Add .eslintrc.json
0
.json
eslintrc
apache-2.0
dwyl/aws-sdk-mock
651
<NME> .eslintrc.json <BEF> ADDFILE <MSG> Add .eslintrc.json https://github.com/aws/aws-sdk-js/blob/master/.eslintrc <DFF> @@ -0,0 +1,23 @@ +{ + "env": { + "browser": true, + "node": true + }, + "globals": { + "Buffer": true, + "escape": true + }, + "rules": { + "quotes": [2, "single"...
23
Add .eslintrc.json
0
.json
eslintrc
apache-2.0
dwyl/aws-sdk-mock
652
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
38
Fix add semicolon
38
.js
test
apache-2.0
dwyl/aws-sdk-mock
653
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
38
Fix add semicolon
38
.js
test
apache-2.0
dwyl/aws-sdk-mock
654
<NME> index.test-d.ts <BEF> import * as AWS from 'aws-sdk'; import { AWSError } from 'aws-sdk'; import { ListObjectsV2Request } from 'aws-sdk/clients/s3'; import { expectError, expectType } from 'tsd'; import { mock, remock, restore, setSDK, setSDKInstance } from '../index'; const awsError: AWSError = { name: 'AWS...
4
#259: patch nested client names
0
.ts
test-d
apache-2.0
dwyl/aws-sdk-mock
655
<NME> index.test-d.ts <BEF> import * as AWS from 'aws-sdk'; import { AWSError } from 'aws-sdk'; import { ListObjectsV2Request } from 'aws-sdk/clients/s3'; import { expectError, expectType } from 'tsd'; import { mock, remock, restore, setSDK, setSDKInstance } from '../index'; const awsError: AWSError = { name: 'AWS...
4
#259: patch nested client names
0
.ts
test-d
apache-2.0
dwyl/aws-sdk-mock
656
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
15
fix(paramValidation): fix Cannot read property 'operations' of undefined error when param validation is set
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
657
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
15
fix(paramValidation): fix Cannot read property 'operations' of undefined error when param validation is set
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
658
<NME> workflow.yml <BEF> ADDFILE <MSG> ci: add .github/workflows/workflow.yml <DFF> @@ -0,0 +1,18 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + os: [ubuntu-latest, windows-latest, macos-lat...
18
ci: add .github/workflows/workflow.yml
0
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
659
<NME> workflow.yml <BEF> ADDFILE <MSG> ci: add .github/workflows/workflow.yml <DFF> @@ -0,0 +1,18 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + os: [ubuntu-latest, windows-latest, macos-lat...
18
ci: add .github/workflows/workflow.yml
0
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
660
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Merge pull request #138 from abetomo/remove_unnecessary_variable
3
.js
test
apache-2.0
dwyl/aws-sdk-mock
661
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Merge pull request #138 from abetomo/remove_unnecessary_variable
3
.js
test
apache-2.0
dwyl/aws-sdk-mock
662
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
2
Merge pull request #224 from TastefulElk/test/increase-coverage
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
663
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
2
Merge pull request #224 from TastefulElk/test/increase-coverage
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
664
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
78
Added ability to mock nested services like DynamoDB.DocumentClient, though care must be taken when mocking a nested service and its parent.
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
665
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
78
Added ability to mock nested services like DynamoDB.DocumentClient, though care must be taken when mocking a nested service and its parent.
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
666
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
52
docs(readme.md): Give a full example in typescript
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
667
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
52
docs(readme.md): Give a full example in typescript
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
668
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
5
Update index.js
3
.js
js
apache-2.0
dwyl/aws-sdk-mock
669
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
5
Update index.js
3
.js
js
apache-2.0
dwyl/aws-sdk-mock
670
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Fix to use 'Buffer.alloc' instead of 'new Buffer'
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
671
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Fix to use 'Buffer.alloc' instead of 'new Buffer'
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
672
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
12
Merge pull request #34 from dwyl/restoring_should_not_throw_errors
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
673
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
12
Merge pull request #34 from dwyl/restoring_should_not_throw_errors
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
674
<NME> workflow.yml <BEF> ADDFILE <MSG> Merge pull request #240 from abetomo/add_github_actions_yml ci: add .github/workflows/workflow.yml <DFF> @@ -0,0 +1,18 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [12.x, 14.x, ...
18
Merge pull request #240 from abetomo/add_github_actions_yml
0
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
675
<NME> workflow.yml <BEF> ADDFILE <MSG> Merge pull request #240 from abetomo/add_github_actions_yml ci: add .github/workflows/workflow.yml <DFF> @@ -0,0 +1,18 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [12.x, 14.x, ...
18
Merge pull request #240 from abetomo/add_github_actions_yml
0
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
676
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Merge pull request #249 from emptyshell/main
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
677
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Merge pull request #249 from emptyshell/main
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
678
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; AWS.config.para...
72
Allow passing in a sinon stub or jest mock as the replacement function and automatically wrap it as a fully functional replacement fn
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
679
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; AWS.config.para...
72
Allow passing in a sinon stub or jest mock as the replacement function and automatically wrap it as a fully functional replacement fn
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
680
<NME> index.test.js <BEF> var test = require('tape'); var awsMock = require('../index.js'); var AWS = require('aws-sdk'); test('AWS.mock function should mock AWS service and method on the service', function(t){ t.test('mock function replaces method with a function that returns replace string', function(st){...
38
Merge pull request #40 from motiz88/request-read-stream
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
681
<NME> index.test.js <BEF> var test = require('tape'); var awsMock = require('../index.js'); var AWS = require('aws-sdk'); test('AWS.mock function should mock AWS service and method on the service', function(t){ t.test('mock function replaces method with a function that returns replace string', function(st){...
38
Merge pull request #40 from motiz88/request-read-stream
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
682
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Remove `var` as it is the second assignment
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
683
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
1
Remove `var` as it is the second assignment
1
.js
test
apache-2.0
dwyl/aws-sdk-mock
684
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
Merge pull request #153 from mankins/feature/remockable
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
685
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
Merge pull request #153 from mankins/feature/remockable
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
686
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
added test scenario to support new functionality
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
687
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
13
added test scenario to support new functionality
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
688
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Update README.md
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
689
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Update README.md
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
690
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
69
Merge pull request #218 from ellenaua/master
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
691
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
69
Merge pull request #218 from ellenaua/master
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
692
<NME> index.test.js <BEF> var tap = require('tap'); var test = tap.test; var awsMock = require('../index.js'); var AWS = require('aws-sdk'); var isNodeStream = require('is-node-stream'); var concatStream = require('concat-stream'); var Readable = require('stream').Readable; AWS.config.paramValidation = false; AWS.con...
65
Replace 'var' with 'const' or 'let'
63
.js
test
apache-2.0
dwyl/aws-sdk-mock
693
<NME> index.test.js <BEF> var tap = require('tap'); var test = tap.test; var awsMock = require('../index.js'); var AWS = require('aws-sdk'); var isNodeStream = require('is-node-stream'); var concatStream = require('concat-stream'); var Readable = require('stream').Readable; AWS.config.paramValidation = false; AWS.con...
65
Replace 'var' with 'const' or 'let'
63
.js
test
apache-2.0
dwyl/aws-sdk-mock
694
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Update README.md
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
695
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Update README.md
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
696
<NME> index.d.ts <BEF> declare module 'aws-sdk-mock' { function mock(service: string, method: string, replace: any): void; function mock( service: string, method: string, replace: (params: any, callback: (err: any, data: any) => void) => void ): void; function remock(service: string, method: strin...
4
Merge pull request #242 from captain-yossarian/issue/241
3
.ts
d
apache-2.0
dwyl/aws-sdk-mock
697
<NME> index.d.ts <BEF> declare module 'aws-sdk-mock' { function mock(service: string, method: string, replace: any): void; function mock( service: string, method: string, replace: (params: any, callback: (err: any, data: any) => void) => void ): void; function remock(service: string, method: strin...
4
Merge pull request #242 from captain-yossarian/issue/241
3
.ts
d
apache-2.0
dwyl/aws-sdk-mock
698
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
9
Added debug so at least you get a message when you have it enabled
4
.js
test
apache-2.0
dwyl/aws-sdk-mock
699
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
9
Added debug so at least you get a message when you have it enabled
4
.js
test
apache-2.0
dwyl/aws-sdk-mock