0.0.22 • Published 5 years ago

promisethat v0.0.22

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

promisethat

Build Status npm

Helper functions for quickly wrapping mock data in promises for unit tests.

usage

npm install promisethat --save-dev

e.g.:

import promiseThat from "promisethat";

// mock response that needs to be wrapped in promise
const data: { aProperty: "with a value" };

// stubbed api call
sinon.stub(anApiLibrary, "anApiCall")
     .returns(promiseThat.resolvesWith(data));
0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago