Files: 64e9abb6cd8d8e8be200248e9a8eeabe10f3dfe2 / test / index-letnice.js
667 bytesRaw
1 | // run this from the terminal using : |
2 | // npx electro test/index-letnice.js |
3 | |
4 | const { h } = require('mutant') |
5 | |
6 | const Marama = require('../') |
7 | require('../lib/styles-inject')() |
8 | |
9 | const marama = Marama({ |
10 | today: new Date(2018, 7, 19), |
11 | events: [ |
12 | { date: new Date(2018, 3, 4), data: { attending: true } }, |
13 | { date: new Date(2018, 7, 19), data: { attending: true } }, |
14 | { date: new Date(2018, 7, 21), data: { attending: false } } |
15 | ], |
16 | range: { |
17 | gte: new Date(2018, 7, 13), |
18 | lt: new Date(2018, 7, 20) |
19 | }, |
20 | styles: { |
21 | weekFormat: 'columns' |
22 | } |
23 | }) |
24 | |
25 | const page = h('div', |
26 | { |
27 | style: { margin: '3rem' } |
28 | }, |
29 | marama |
30 | ) |
31 | |
32 | document.body.appendChild(page) |
33 |
Built with git-ssb-web