testdata

0.1.4 • Public • Published

testdata

Test data for unit tests and ui development. Because Lorem is boring!

Usage

npm install --save-dev testdata

Game of Thrones

All objects

import got from 'testdata/got';
// got.author, got.book1, got.TyrionLannister, ...

Get random object

import got from 'testdata/got';
 
got.getRandomBook();
got.getRandomCharacter();
got.getRandomQuote();

Author

import author from 'testdata/got/author';

JSON Direct links

Books

import books from 'testdata/got/books';
// books.book1, ...
 
import book1 from 'testdata/got/books/book1';

JSON Direct links

Characters

import characters from 'testdata/got/characters';
// characters.EddardStark, ...
 
import ned from 'testdata/got/characters/eddard-stark';
 
import 'testdata/got/characters/eddard-stark.jpg';
// For Webpack loaders or similar use cases

JSON Direct links

Images

Quotes

import quotes from 'testdata/got/quotes';
// ['quote 1', 'quote 2', ...]

Photos

Copyright

Testdata contains references, data and multimedia contents that is copied from published novels and media. This contents is used for the sake of familiarity and respect for the quality of the works. Testdata is open source and not for any kind of commercial use.

Source of photos: pixabay.com, released under Creative Commons CC0.

Readme

Keywords

none

Package Sidebar

Install

npm i testdata

Weekly Downloads

66

Version

0.1.4

License

MIT

Last publish

Collaborators

  • henit