Commit 4e9034c4 authored by Thomas Parisot's avatar Thomas Parisot

chore(tests): mimic folder structure of specs in src

Also, fix chunker test file
parent f5e9c7fa
......@@ -43,7 +43,7 @@
"legacy": "./node_modules/.bin/rollup -c rollup.legacy.config.js",
"start": "./node_modules/.bin/rollup -w -c rollup.server.config.js",
"test": "npm run tests && npm run specs",
"tests": "jest --config=tests/jest.config.js",
"tests": "jest --config=src/jest.config.js",
"specs": "jest --config=specs/jest.config.js",
"compile": "./node_modules/.bin/babel src/ -d lib/",
"pretest": "npm run build",
......
import { Chunker } from '../../src/index.js';
import Chunker from './chunker.js';
describe('Chunker', async () => {
describe('Chunker', () => {
it('should create a page area', async () => {
it('should create a page area', () => {
let chunker = new Chunker();
chunker.setup();
expect(chunker.pagesArea.classList).toContain('pagedjs_pages');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment