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 |
|---|---|---|---|---|---|---|---|---|
500 | <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... | 1 | chore(deps): upgrade devDependencies | 2 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
501 | <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... | 1 | chore(deps): upgrade devDependencies | 2 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
502 | <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... | 34 | Fixes issues where jest replace function had an implementation and with calling the mocked method with a single parameter | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
503 | <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... | 34 | Fixes issues where jest replace function had an implementation and with calling the mocked method with a single parameter | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
504 | <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 | allow spy to return promise rather than call callback | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
505 | <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 | allow spy to return promise rather than call callback | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
506 | <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 | PR corrections | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
507 | <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 | PR corrections | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
508 | <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 | fix: backport stream code to node 0.10 | 5 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
509 | <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 | fix: backport stream code to node 0.10 | 5 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
510 | <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 | Remove stray console message | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
511 | <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 | Remove stray console message | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
512 | <NME> CONTRIBUTING.md
<BEF> ADDFILE
<MSG> Create CONTRIBUTING.md
<DFF> @@ -0,0 +1,1 @@
+_**Please read** our_ [**contribution guide**](https://github.com/dwyl/contributing) (_thank you_!)
| 1 | Create CONTRIBUTING.md | 0 | .md | md | apache-2.0 | dwyl/aws-sdk-mock |
513 | <NME> CONTRIBUTING.md
<BEF> ADDFILE
<MSG> Create CONTRIBUTING.md
<DFF> @@ -0,0 +1,1 @@
+_**Please read** our_ [**contribution guide**](https://github.com/dwyl/contributing) (_thank you_!)
| 1 | Create CONTRIBUTING.md | 0 | .md | md | apache-2.0 | dwyl/aws-sdk-mock |
514 | <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... | 22 | When remock is called, update all instances of client | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
515 | <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... | 22 | When remock is called, update all instances of client | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
516 | <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... | 61 | Merge remote-tracking branch 'dwyl/master' into unhandled-rejections | 33 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
517 | <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... | 61 | Merge remote-tracking branch 'dwyl/master' into unhandled-rejections | 33 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
518 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[;
+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.tes... | 104 | Merge pull request #2 from dwyl/v1 | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
521 | <NME> index.test.js
<BEF> ADDFILE
<MSG> Merge pull request #2 from dwyl/v1
V1of module
<DFF> @@ -0,0 +1,104 @@
+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.tes... | 104 | Merge pull request #2 from dwyl/v1 | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
522 | <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... | 16 | You can now mock out multiple methods on the same service | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
523 | <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... | 16 | You can now mock out multiple methods on the same service | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
524 | <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... | 36 | Add support for mocking AWS SDK's promises | 8 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
525 | <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... | 36 | Add support for mocking AWS SDK's promises | 8 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
526 | <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 | Reduce indentation in jest "throw" test/index.test.js | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
527 | <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 | Reduce indentation in jest "throw" test/index.test.js | 1 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
528 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[;
const t... | 1 | Removed bitwise operator for more readability | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
533 | <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... | 1 | Removed bitwise operator for more readability | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
534 | <NME> LICENSE
<BEF> ADDFILE
<MSG> add Apache 2.0 license file fixes https://github.com/dwyl/aws-sdk-mock/issues/71
<DFF> @@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CO... | 202 | add Apache 2.0 license file fixes https://github.com/dwyl/aws-sdk-mock/issues/71 | 0 | LICENSE | apache-2.0 | dwyl/aws-sdk-mock | |
535 | <NME> LICENSE
<BEF> ADDFILE
<MSG> add Apache 2.0 license file fixes https://github.com/dwyl/aws-sdk-mock/issues/71
<DFF> @@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CO... | 202 | add Apache 2.0 license file fixes https://github.com/dwyl/aws-sdk-mock/issues/71 | 0 | LICENSE | apache-2.0 | dwyl/aws-sdk-mock | |
536 | <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... | 23 | Merge pull request #262 from thomaux/fix-259 | 0 | .ts | test-d | apache-2.0 | dwyl/aws-sdk-mock |
537 | <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... | 23 | Merge pull request #262 from thomaux/fix-259 | 0 | .ts | test-d | apache-2.0 | dwyl/aws-sdk-mock |
538 | <NME> .gitignore
<BEF> node_modules/
coverage/
.DS_Store
.nyc_output
<MSG> add package-lock.json to .gitignore (super noisy file!)
<DFF> @@ -2,3 +2,4 @@ node_modules/
coverage/
.DS_Store
.nyc_output
+package-lock.json
\ No newline at end of file
| 1 | add package-lock.json to .gitignore (super noisy file!) | 0 | gitignore | apache-2.0 | dwyl/aws-sdk-mock | |
539 | <NME> .gitignore
<BEF> node_modules/
coverage/
.DS_Store
.nyc_output
<MSG> add package-lock.json to .gitignore (super noisy file!)
<DFF> @@ -2,3 +2,4 @@ node_modules/
coverage/
.DS_Store
.nyc_output
+package-lock.json
\ No newline at end of file
| 1 | add package-lock.json to .gitignore (super noisy file!) | 0 | gitignore | apache-2.0 | dwyl/aws-sdk-mock | |
540 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[;
const t... | 0 | When remock is called, update all instances of client | 3 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
547 | <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... | 0 | When remock is called, update all instances of client | 3 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
548 | <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... | 23 | Merge branch 'main' of github.com:dwyl/aws-sdk-mock | 0 | .ts | test-d | apache-2.0 | dwyl/aws-sdk-mock |
549 | <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... | 23 | Merge branch 'main' of github.com:dwyl/aws-sdk-mock | 0 | .ts | test-d | apache-2.0 | dwyl/aws-sdk-mock |
550 | <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... | 1 | Merge pull request #8 from dwyl/remove-bitwise-operator | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
551 | <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... | 1 | Merge pull request #8 from dwyl/remove-bitwise-operator | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
552 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://codecov.io/github/dwy... | 5 | add snyk dependency checking and badge in README.md see: https://github.com/dwyl/aws-sdk-mock/issues/161 | 4 | .md | md | apache-2.0 | dwyl/aws-sdk-mock |
553 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://codecov.io/github/dwy... | 5 | add snyk dependency checking and badge in README.md see: https://github.com/dwyl/aws-sdk-mock/issues/161 | 4 | .md | md | apache-2.0 | dwyl/aws-sdk-mock |
554 | <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... | 3 | add remock function, remove update | 3 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
555 | <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... | 3 | add remock function, remove update | 3 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
556 | <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... | 28 | Merge branch 'master' into patch-1 | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
557 | <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... | 28 | Merge branch 'master' into patch-1 | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
558 | <NME> index.d.ts
<BEF> declare module 'aws-sdk-mock' {
function mock(service: string, method: string, replace: string): void;
function mock(
service: string,
replace: (params: any, callback: (err: any, data: any) => void) => void
): void;
function remock(service: string, method: string, replace: stri... | 3 | Merge pull request #172 from joostfarla/ts | 4 | .ts | d | apache-2.0 | dwyl/aws-sdk-mock |
559 | <NME> index.d.ts
<BEF> declare module 'aws-sdk-mock' {
function mock(service: string, method: string, replace: string): void;
function mock(
service: string,
replace: (params: any, callback: (err: any, data: any) => void) => void
): void;
function remock(service: string, method: string, replace: stri... | 3 | Merge pull request #172 from joostfarla/ts | 4 | .ts | d | apache-2.0 | dwyl/aws-sdk-mock |
560 | <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;
const concatStream = require('c... | 14 | Check test code with eslint | 14 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
561 | <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;
const concatStream = require('c... | 14 | Check test code with eslint | 14 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
562 | <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... | 1 | Update index.js | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
563 | <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... | 1 | Update index.js | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
564 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[;
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... | 24 | Merge pull request #55 from eduponte/master | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
571 | <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... | 24 | Merge pull request #55 from eduponte/master | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
572 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- "12"
- "8"
- "10"
- "12"
before_install:
- pip install --user codecov
after_success:
<MSG> Add Node.js 14 to ci settings
<DFF> @@ -4,6 +4,7 @@ node_js:
- "8"
- "10"
- "12"
+ - "14"
before_install:
- pip install --user codecov
after_success:... | 1 | Add Node.js 14 to ci settings | 0 | .yml | travis | apache-2.0 | dwyl/aws-sdk-mock |
573 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- "12"
- "8"
- "10"
- "12"
before_install:
- pip install --user codecov
after_success:
<MSG> Add Node.js 14 to ci settings
<DFF> @@ -4,6 +4,7 @@ node_js:
- "8"
- "10"
- "12"
+ - "14"
before_install:
- pip install --user codecov
after_success:... | 1 | Add Node.js 14 to ci settings | 0 | .yml | travis | apache-2.0 | dwyl/aws-sdk-mock |
574 | <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... | 0 | Save this for future PR | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
575 | <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... | 0 | Save this for future PR | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
576 | <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... | 71 | Merge branch 'master' into master | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
577 | <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... | 71 | Merge branch 'master' into master | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
578 | <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 | Handle AWS method being called w/o arguments | 4 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
579 | <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 | Handle AWS method being called w/o arguments | 4 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
580 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[;
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;
const concatStream = require('c... | 14 | Merge pull request #168 from abetomo/check_test_code_with_eslint | 14 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
583 | <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;
const concatStream = require('c... | 14 | Merge pull request #168 from abetomo/check_test_code_with_eslint | 14 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
584 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- "12"
- "6"
- "8"
- "10"
before_install:
- pip install --user codecov
after_success:
<MSG> Add Node.js 12 to CI setting
<DFF> @@ -4,6 +4,7 @@ node_js:
- "6"
- "8"
- "10"
+ - "12"
before_install:
- pip install --user codecov
after_success:
| 1 | Add Node.js 12 to CI setting | 0 | .yml | travis | apache-2.0 | dwyl/aws-sdk-mock |
585 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- "12"
- "6"
- "8"
- "10"
before_install:
- pip install --user codecov
after_success:
<MSG> Add Node.js 12 to CI setting
<DFF> @@ -4,6 +4,7 @@ node_js:
- "6"
- "8"
- "10"
+ - "12"
before_install:
- pip install --user codecov
after_success:
| 1 | Add Node.js 12 to CI setting | 0 | .yml | travis | apache-2.0 | dwyl/aws-sdk-mock |
586 | <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... | 38 | Merge branch 'master' into master | 2 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
587 | <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... | 38 | Merge branch 'master' into master | 2 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
588 | <NME> README.md
<BEF> # aws-sdk-mock
AWSome mocks for Javascript aws-sdk services.
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[](https://travis-ci.org/dwyl/aws-sdk-mock)
[;
const t... | 1 | Removes bitwise operator | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
591 | <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... | 1 | Removes bitwise operator | 1 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
592 | <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... | 44 | Add tests for environments with native Promises | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
593 | <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... | 44 | Add tests for environments with native Promises | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
594 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- "4.2.3"
- "node"
before_install:
- pip install --user codecov
after_success:
<MSG> Add testing on more node versions
<DFF> @@ -1,7 +1,9 @@
language: node_js
node_js:
- - "4.2.3"
- - "node"
+ - "4"
+ - "6"
+ - "8"
+ - "10"
before_install:
- pip ins... | 4 | Add testing on more node versions | 2 | .yml | travis | apache-2.0 | dwyl/aws-sdk-mock |
595 | <NME> .travis.yml
<BEF> language: node_js
node_js:
- "4.2.3"
- "node"
before_install:
- pip install --user codecov
after_success:
<MSG> Add testing on more node versions
<DFF> @@ -1,7 +1,9 @@
language: node_js
node_js:
- - "4.2.3"
- - "node"
+ - "4"
+ - "6"
+ - "8"
+ - "10"
before_install:
- pip ins... | 4 | Add testing on more node versions | 2 | .yml | travis | apache-2.0 | dwyl/aws-sdk-mock |
596 | <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 `send` method to request object | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
597 | <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 `send` method to request object | 0 | .js | test | apache-2.0 | dwyl/aws-sdk-mock |
598 | <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... | 4 | added config parameter for requires AWS configurations | 4 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |
599 | <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... | 4 | added config parameter for requires AWS configurations | 4 | .js | js | apache-2.0 | dwyl/aws-sdk-mock |