import { Aurelia , FrameworkConfiguration } from 'aurelia-framework' ; import { DOM } from 'aurelia-pal' ; export function configure ( aurelia ) { return aurelia . use . standardConfiguration ( ) . plugin ( 'dist/test/src/aurelia-validation' ) . feature ( './dist/test/test/resources' ) ; } export function blur ( element ) { element . dispatchEvent ( DOM . createCustomEvent ( 'blur' , { } ) ) ; return new Promise < void > ( resolve => setTimeout ( resolve ) ) ; } export function focusout ( element ) { element . dispatchEvent ( DOM . createCustomEvent ( 'focusout' , { bubbles : true } ) ) ; return new Promise < void > ( resolve => setTimeout ( resolve ) ) ; } export function change ( element , value ) { element . value = value ; element . dispatchEvent ( DOM . createCustomEvent ( 'change' , { bubbles : true } ) ) ; return new Promise < void > ( resolve => setTimeout ( resolve ) ) ; }