Skip to content
Snippets Groups Projects
Commit 3e2fa372 authored by squidfunk's avatar squidfunk
Browse files

Fixed case where there were no states defined

parent 7e601d48
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ node_js:
matrix:
include:
- node_js: 7
script: yarn run test:visual:run
script: yarn run test:visual:run --no-clean
# Install a C++11 compatible compiler
addons:
......
......@@ -136,7 +136,8 @@ const generate = (dirname, components) => {
suite.setCaptureElements(component.capture)
/* Generate a subsuite for every state */
for (const state of component.states) {
const states = component.states || [{ name: "", wait: 0 }]
for (const state of states) {
const test = subsuite => {
/* Resolve and apply relevant breakpoints */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment