Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Dec 26, 2018
1 parent b4393b7 commit add65de
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion tests/mocks/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface Data {
* ------------------------------------------------------------------------- */

/**
* Mock data
* Mock `Data`
*
* @return Data
*/
Expand Down
42 changes: 21 additions & 21 deletions tests/mocks/isotopes/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { flatten } from "isotopes/format"
* ------------------------------------------------------------------------- */

/**
* Mock item
* Mock `IsotopeClientItem`
*
* @template T - Data type
*
Expand All @@ -54,7 +54,7 @@ export function mockIsotopeClientItem<T>(
* ------------------------------------------------------------------------- */

/**
* Mock IsotopeClient.create
* Mock `IsotopeClient.create`
*
* @param promise - Promise returned by client
*
Expand All @@ -68,7 +68,7 @@ function mockIsotopeClientCreate<T>(
}

/**
* Mock IsotopeClient.create returning with result
* Mock `IsotopeClient.create` returning with result
*
* @param item - Item
*
Expand All @@ -79,7 +79,7 @@ export function mockIsotopeClientCreateWithSuccess(): jasmine.Spy {
}

/**
* Mock IsotopeClient.create throwing an error
* Mock `IsotopeClient.create` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -94,7 +94,7 @@ export function mockIsotopeClientCreateWithError(
/* ------------------------------------------------------------------------- */

/**
* Mock IsotopeClient.destroy
* Mock `IsotopeClient.destroy`
*
* @param promise - Promise returned by client
*
Expand All @@ -108,7 +108,7 @@ function mockIsotopeClientDestroy<T>(
}

/**
* Mock IsotopeClient.destroy returning with result
* Mock `IsotopeClient.destroy` returning with result
*
* @param item - Item
*
Expand All @@ -119,7 +119,7 @@ export function mockIsotopeClientDestroyWithSuccess(): jasmine.Spy {
}

/**
* Mock IsotopeClient.destroy throwing an error
* Mock `IsotopeClient.destroy` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -134,7 +134,7 @@ export function mockIsotopeClientDestroyWithError(
/* ------------------------------------------------------------------------- */

/**
* Mock IsotopeClient.get
* Mock `IsotopeClient.get`
*
* @param promise - Promise returned by client
*
Expand All @@ -148,7 +148,7 @@ function mockIsotopeClientGet<T>(
}

/**
* Mock IsotopeClient.get returning with result
* Mock `IsotopeClient.get` returning with result
*
* @param item - Item
*
Expand All @@ -161,7 +161,7 @@ export function mockIsotopeClientGetWithResult(
}

/**
* Mock IsotopeClient.get returning without result
* Mock `IsotopeClient.get` returning without result
*
* @return Jasmine spy
*/
Expand All @@ -170,7 +170,7 @@ export function mockIsotopeClientGetWithoutResult(): jasmine.Spy {
}

/**
* Mock IsotopeClient.get throwing an error
* Mock `IsotopeClient.get` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -185,7 +185,7 @@ export function mockIsotopeClientGetWithError(
/* ------------------------------------------------------------------------- */

/**
* Mock IsotopeClient.put
* Mock `IsotopeClient.put`
*
* @param promise - Promise returned by client
*
Expand All @@ -199,7 +199,7 @@ function mockIsotopeClientPut<T>(
}

/**
* Mock IsotopeClient.put returning with success
* Mock `IsotopeClient.put` returning with success
*
* @return Jasmine spy
*/
Expand All @@ -208,7 +208,7 @@ export function mockIsotopeClientPutWithSuccess(): jasmine.Spy {
}

/**
* Mock IsotopeClient.put throwing an error
* Mock `IsotopeClient.put` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -223,7 +223,7 @@ export function mockIsotopeClientPutWithError(
/* ------------------------------------------------------------------------- */

/**
* Mock IsotopeClient.delete
* Mock `IsotopeClient.delete`
*
* @param promise - Promise returned by client
*
Expand All @@ -237,7 +237,7 @@ function mockIsotopeClientDelete<T>(
}

/**
* Mock IsotopeClient.delete returning with success
* Mock `IsotopeClient.delete` returning with success
*
* @return Jasmine spy
*/
Expand All @@ -246,7 +246,7 @@ export function mockIsotopeClientDeleteWithSuccess(): jasmine.Spy {
}

/**
* Mock IsotopeClient.delete throwing an error
* Mock `IsotopeClient.delete` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -261,7 +261,7 @@ export function mockIsotopeClientDeleteWithError(
/* ------------------------------------------------------------------------- */

/**
* Mock IsotopeClient.select
* Mock `IsotopeClient.select`
*
* @param promise - Promise returned by client
*
Expand All @@ -275,7 +275,7 @@ function mockIsotopeClientSelect<T>(
}

/**
* Mock IsotopeClient.select returning with result
* Mock `IsotopeClient.select` returning with result
*
* @param list - Item list
*
Expand All @@ -290,7 +290,7 @@ export function mockIsotopeClientSelectWithResult(
}

/**
* Mock IsotopeClient.select returning without result
* Mock `IsotopeClient.select` returning without result
*
* @return Jasmine spy
*/
Expand All @@ -301,7 +301,7 @@ export function mockIsotopeClientSelectWithoutResult(): jasmine.Spy {
}

/**
* Mock IsotopeClient.select throwing an error
* Mock `IsotopeClient.select` throwing an error
*
* @param err - Error to be thrown
*
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/vendor/aws-sdk/error/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AWSMockError extends Error {
* ------------------------------------------------------------------------- */

/**
* Mock AWS error
* Mock an AWS error
*
* @param statusCode - Status code
*
Expand Down
8 changes: 4 additions & 4 deletions tests/mocks/vendor/aws-sdk/simpledb/create-domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { mock, restore } from "aws-sdk-mock"
* ------------------------------------------------------------------------- */

/**
* Mock SimpleDB.createDomain
* Mock `SimpleDB.createDomain`
*
* @param spy - Spy/fake to mock SimpleDB
*
Expand All @@ -45,7 +45,7 @@ function mockSimpleDBCreateDomain(
}

/**
* Mock SimpleDB.createDomain returning with success
* Mock `SimpleDB.createDomain` returning with success
*
* @return Jasmine spy
*/
Expand All @@ -55,7 +55,7 @@ export function mockSimpleDBCreateDomainWithSuccess(): jasmine.Spy {
}

/**
* Mock SimpleDB.createDomain throwing an error
* Mock `SimpleDB.createDomain` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -70,7 +70,7 @@ export function mockSimpleDBCreateDomainWithError(
}

/**
* Restore SimpleDB.createDomain
* Restore `SimpleDB.createDomain`
*/
export function restoreSimpleDBCreateDomain() {
restore("SimpleDB", "createDomain")
Expand Down
8 changes: 4 additions & 4 deletions tests/mocks/vendor/aws-sdk/simpledb/delete-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { mock, restore } from "aws-sdk-mock"
* ------------------------------------------------------------------------- */

/**
* Mock SimpleDB.deleteAttributes
* Mock `SimpleDB.deleteAttributes`
*
* @param spy - Spy/fake to mock SimpleDB
*
Expand All @@ -45,7 +45,7 @@ function mockSimpleDBDeleteAttributes(
}

/**
* Mock SimpleDB.deleteAttributes returning with success
* Mock `SimpleDB.deleteAttributes` returning with success
*
* @return Jasmine spy
*/
Expand All @@ -55,7 +55,7 @@ export function mockSimpleDBDeleteAttributesWithSuccess(): jasmine.Spy {
}

/**
* Mock SimpleDB.deleteAttributes throwing an error
* Mock `SimpleDB.deleteAttributes` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -70,7 +70,7 @@ export function mockSimpleDBDeleteAttributesWithError(
}

/**
* Restore SimpleDB.deleteAttributes
* Restore `SimpleDB.deleteAttributes`
*/
export function restoreSimpleDBDeleteAttributes() {
restore("SimpleDB", "deleteAttributes")
Expand Down
8 changes: 4 additions & 4 deletions tests/mocks/vendor/aws-sdk/simpledb/delete-domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { mock, restore } from "aws-sdk-mock"
* ------------------------------------------------------------------------- */

/**
* Mock SimpleDB.deleteDomain
* Mock `SimpleDB.deleteDomain`
*
* @param spy - Spy/fake to mock SimpleDB
*
Expand All @@ -45,7 +45,7 @@ function mockSimpleDBDeleteDomain(
}

/**
* Mock SimpleDB.deleteDomain returning with success
* Mock `SimpleDB.deleteDomain` returning with success
*
* @return Jasmine spy
*/
Expand All @@ -55,7 +55,7 @@ export function mockSimpleDBDeleteDomainWithSuccess(): jasmine.Spy {
}

/**
* Mock SimpleDB.deleteDomain throwing an error
* Mock `SimpleDB.deleteDomain` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -70,7 +70,7 @@ export function mockSimpleDBDeleteDomainWithError(
}

/**
* Restore SimpleDB.deleteDomain
* Restore `SimpleDB.deleteDomain`
*/
export function restoreSimpleDBDeleteDomain() {
restore("SimpleDB", "deleteDomain")
Expand Down
8 changes: 4 additions & 4 deletions tests/mocks/vendor/aws-sdk/simpledb/get-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { IsotopeDictionary } from "isotopes/format"
* ------------------------------------------------------------------------- */

/**
* Mock SimpleDB.getAttributes
* Mock `SimpleDB.getAttributes`
*
* @param spy - Spy/fake to mock SimpleDB
*
Expand All @@ -48,7 +48,7 @@ function mockSimpleDBGetAttributes(
}

/**
* Mock SimpleDB.getAttributes returning with result
* Mock `SimpleDB.getAttributes` returning with result
*
* @param attrs - Attributes
*
Expand All @@ -65,7 +65,7 @@ export function mockSimpleDBGetAttributesWithResult(
}

/**
* Mock SimpleDB.getAttributes returning with result
* Mock `SimpleDB.getAttributes` returning with result
*
* @return Jasmine spy
*/
Expand All @@ -76,7 +76,7 @@ export function mockSimpleDBGetAttributesWithoutResult(): jasmine.Spy {
}

/**
* Mock SimpleDB.getAttributes throwing an error
* Mock `SimpleDB.getAttributes` throwing an error
*
* @param err - Error to be thrown
*
Expand Down
8 changes: 4 additions & 4 deletions tests/mocks/vendor/aws-sdk/simpledb/put-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { mock, restore } from "aws-sdk-mock"
* ------------------------------------------------------------------------- */

/**
* Mock SimpleDB.putAttributes
* Mock `SimpleDB.putAttributes`
*
* @param spy - Spy/fake to mock SimpleDB
*
Expand All @@ -45,7 +45,7 @@ function mockSimpleDBPutAttributes(
}

/**
* Mock SimpleDB.putAttributes returning with success
* Mock `SimpleDB.putAttributes` returning with success
*
* @return Jasmine spy
*/
Expand All @@ -55,7 +55,7 @@ export function mockSimpleDBPutAttributesWithSuccess(): jasmine.Spy {
}

/**
* Mock SimpleDB.putAttributes throwing an error
* Mock `SimpleDB.putAttributes` throwing an error
*
* @param err - Error to be thrown
*
Expand All @@ -70,7 +70,7 @@ export function mockSimpleDBPutAttributesWithError(
}

/**
* Restore SimpleDB.putAttributes
* Restore `SimpleDB.putAttributes`
*/
export function restoreSimpleDBPutAttributes() {
restore("SimpleDB", "putAttributes")
Expand Down
Loading

0 comments on commit add65de

Please sign in to comment.