1.3.0 • Published 7 months ago

drupal-test-data v1.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

drupal-test-data-generator

Table of Contents

About

Drupal-test-data-generator is a library that generates fake data that can be used for things such as:

- [Automated Testing]
- [API Testing] 

This document covers the usage with Javscript implmentation of Drupal-test-data-generator

Getting Started

These instructions will let you know how to install drupal-test-data package and use it in your project

Prerequisites

  1. Git client installed. To verify if git client is installed properly, open Terminal on Linux/Mac, then execute this command
 $ `git --version`
  1. NodeJS 16+ installed. To verify if nodejs is installed properly, open Terminal on Linux/Mac, then execute this command
$ `node --version`

Installing the drupal-test-data package

npm install drupal-test-data --save-dev 

Usage

Below are the sample examples code in order to use the package in your code.

const fakeData = require("drupal-test-data")
console.log(fakeData.cvedetails.title)
console.log(fakeData.article.abstract)
console.log(fakeData.solution.resolution)
console.log(fakeData.discussion.content)
1.3.0

7 months ago

1.2.0

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago