Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh committed Nov 28, 2019
1 parent b7c5462 commit 72b6578
Showing 1 changed file with 29 additions and 87 deletions.
116 changes: 29 additions & 87 deletions packages/test-utils/src/error-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,31 @@ export default class ErrorWrapper implements BaseWrapper {

attributes(): void {
throwError(
`find did not return ${
this.selector
}, cannot call attributes() on empty Wrapper`
`find did not return ${this.selector}, cannot call attributes() on empty Wrapper`
)
}

classes(): void {
throwError(
`find did not return ${
this.selector
}, cannot call classes() on empty Wrapper`
`find did not return ${this.selector}, cannot call classes() on empty Wrapper`
)
}

contains(): void {
throwError(
`find did not return ${
this.selector
}, cannot call contains() on empty Wrapper`
`find did not return ${this.selector}, cannot call contains() on empty Wrapper`
)
}

emitted(): void {
throwError(
`find did not return ${
this.selector
}, cannot call emitted() on empty Wrapper`
`find did not return ${this.selector}, cannot call emitted() on empty Wrapper`
)
}

emittedByOrder(): void {
throwError(
`find did not return ${
this.selector
}, cannot call emittedByOrder() on empty Wrapper`
`find did not return ${this.selector}, cannot call emittedByOrder() on empty Wrapper`
)
}

Expand All @@ -61,73 +51,55 @@ export default class ErrorWrapper implements BaseWrapper {

filter(): void {
throwError(
`find did not return ${
this.selector
}, cannot call filter() on empty Wrapper`
`find did not return ${this.selector}, cannot call filter() on empty Wrapper`
)
}

visible(): void {
throwError(
`find did not return ${
this.selector
}, cannot call visible() on empty Wrapper`
`find did not return ${this.selector}, cannot call visible() on empty Wrapper`
)
}

hasAttribute(): void {
throwError(
`find did not return ${
this.selector
}, cannot call hasAttribute() on empty Wrapper`
`find did not return ${this.selector}, cannot call hasAttribute() on empty Wrapper`
)
}

hasClass(): void {
throwError(
`find did not return ${
this.selector
}, cannot call hasClass() on empty Wrapper`
`find did not return ${this.selector}, cannot call hasClass() on empty Wrapper`
)
}

hasProp(): void {
throwError(
`find did not return ${
this.selector
}, cannot call hasProp() on empty Wrapper`
`find did not return ${this.selector}, cannot call hasProp() on empty Wrapper`
)
}

hasStyle(): void {
throwError(
`find did not return ${
this.selector
}, cannot call hasStyle() on empty Wrapper`
`find did not return ${this.selector}, cannot call hasStyle() on empty Wrapper`
)
}

findAll(): void {
throwError(
`find did not return ${
this.selector
}, cannot call findAll() on empty Wrapper`
`find did not return ${this.selector}, cannot call findAll() on empty Wrapper`
)
}

find(): void {
throwError(
`find did not return ${
this.selector
}, cannot call find() on empty Wrapper`
`find did not return ${this.selector}, cannot call find() on empty Wrapper`
)
}

html(): void {
throwError(
`find did not return ${
this.selector
}, cannot call html() on empty Wrapper`
`find did not return ${this.selector}, cannot call html() on empty Wrapper`
)
}

Expand All @@ -139,121 +111,91 @@ export default class ErrorWrapper implements BaseWrapper {

isEmpty(): void {
throwError(
`find did not return ${
this.selector
}, cannot call isEmpty() on empty Wrapper`
`find did not return ${this.selector}, cannot call isEmpty() on empty Wrapper`
)
}

isVisible(): void {
throwError(
`find did not return ${
this.selector
}, cannot call isVisible() on empty Wrapper`
`find did not return ${this.selector}, cannot call isVisible() on empty Wrapper`
)
}

isVueInstance(): void {
throwError(
`find did not return ${
this.selector
}, cannot call isVueInstance() on empty Wrapper`
`find did not return ${this.selector}, cannot call isVueInstance() on empty Wrapper`
)
}

name(): void {
throwError(
`find did not return ${
this.selector
}, cannot call name() on empty Wrapper`
`find did not return ${this.selector}, cannot call name() on empty Wrapper`
)
}

props(): void {
throwError(
`find did not return ${
this.selector
}, cannot call props() on empty Wrapper`
`find did not return ${this.selector}, cannot call props() on empty Wrapper`
)
}

text(): void {
throwError(
`find did not return ${
this.selector
}, cannot call text() on empty Wrapper`
`find did not return ${this.selector}, cannot call text() on empty Wrapper`
)
}

setComputed(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setComputed() on empty Wrapper`
`find did not return ${this.selector}, cannot call setComputed() on empty Wrapper`
)
}

setData(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setData() on empty Wrapper`
`find did not return ${this.selector}, cannot call setData() on empty Wrapper`
)
}

setMethods(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setMethods() on empty Wrapper`
`find did not return ${this.selector}, cannot call setMethods() on empty Wrapper`
)
}

setProps(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setProps() on empty Wrapper`
`find did not return ${this.selector}, cannot call setProps() on empty Wrapper`
)
}

setValue(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setValue() on empty Wrapper`
`find did not return ${this.selector}, cannot call setValue() on empty Wrapper`
)
}

setChecked(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setChecked() on empty Wrapper`
`find did not return ${this.selector}, cannot call setChecked() on empty Wrapper`
)
}

setSelected(): void {
throwError(
`find did not return ${
this.selector
}, cannot call setSelected() on empty Wrapper`
`find did not return ${this.selector}, cannot call setSelected() on empty Wrapper`
)
}

trigger(): void {
throwError(
`find did not return ${
this.selector
}, cannot call trigger() on empty Wrapper`
`find did not return ${this.selector}, cannot call trigger() on empty Wrapper`
)
}

destroy(): void {
throwError(
`find did not return ${
this.selector
}, cannot call destroy() on empty Wrapper`
`find did not return ${this.selector}, cannot call destroy() on empty Wrapper`
)
}
}

0 comments on commit 72b6578

Please sign in to comment.