@enonic/test-data
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@enonic/test-data

Exports constants that contain test values for most javascript and some Enonic XP data-types.

Some of these test values are Egde(min/max extremes) and Boundary(just outside edge) case values.

Usage

import {
	GEOPOINT_ARRAYS,
	GEOPOINT_ARRAYS_INVALID
} from '@enonic/test-data';

console.debug(GEOPOINT_ARRAYS);
/*
	[59.9090442,10.7423389],
	[-90,-180],
	[90,-180],
	[0,0],
	[-90,180],
	[90,180]
*/

console.debug(GEOPOINT_ARRAYS_INVALID);
/*
	[-91,-180],
	[-90.0000001,-181],
	[-90,-181],
	[-90,-180.0000001],
	[91,-180],
	[90.0000001,-180],
	[90,-181],
	[90,-180.0000001],
	[-91,180],
	[-90.0000001,180],
	[-90,181],
	[-90,180.0000001],
	[91,180],
	[90.0000001,180],
	[90,181],
	[90,180.0000001]
*/

Enonic logo


Package Sidebar

Install

npm i @enonic/test-data

Weekly Downloads

18

Version

1.2.0

License

GPL-3.0

Unpacked Size

79.3 kB

Total Files

22

Last publish

Collaborators

  • edloidas
  • sigdestad
  • cwe_at_enonic.com
  • alansemenov