Commit def94b37 authored by Guillaume's avatar Guillaume
Browse files

Jest tests must be defined synchronously

Remove `async` in the describe tests definition.
Resolve the following warning:

> Returning a Promise from "describe" is not supported. Tests must be defined synchronously.
> Returning a value from "describe" will fail the test in a future version of Jest.
parent e6492476
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('bleed', async () => {
describe('bleed', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-avoid', async () => {
describe('break-after-avoid', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-left', async () => {
describe('break-after-left', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-page', async () => {
describe('break-after-page', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-recto', async () => {
describe('break-after-recto', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-right', async () => {
describe('break-after-right', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-after-verso', async () => {
describe('break-after-verso', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-avoid', async () => {
describe('break-before-avoid', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-left', async () => {
describe('break-before-left', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-page', async () => {
describe('break-before-page', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-before-right', async () => {
describe('break-before-right', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break-inside-avoid', async () => {
describe('break-inside-avoid', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('breaks', async () => {
describe('breaks', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('counter-page', async () => {
describe('counter-page', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('counter-pages', async () => {
describe('counter-pages', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('counter-pages', async () => {
describe('counter-pages', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('bleed', async () => {
describe('bleed', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('default', async () => {
describe('default', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000;
describe('content-none', async () => {
describe('content-none', () => {
let page;
let rendered;
beforeAll(async () => {
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('hooks', async () => {
describe('hooks', () => {
let page;
let rendered;
beforeAll(async () => {
......
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