UNPKG

@astrodraw/astrochart

Version:

A free and open-source JavaScript library for generating SVG charts to display planets in astrology.

20 lines (15 loc) 544 B
import Chart from "./chart" describe.only('constructor', () => { test('should throw error when empty houses', () => { const chart = new Chart('paper', 1, 1) expect(() => { chart.radix({planets: {}, cusps: []}) }).toThrowError(`Count of 'cusps' values has to be 12.`) }) test('should throw error when houses are less than 12', () => { const chart = new Chart('paper', 1, 1) expect(() => { chart.radix({planets: {}, cusps: [1, 2, 3]}) }).toThrowError(`Count of 'cusps' values has to be 12.`) }) })