export default { compileOptions : { dev : true } , test ( { assert , component } ) { const warn = console . warn ; const warnings = [ ] ; console . warn = warning => { warnings . push ( warning ) ; } ; component . $destroy ( ) ; component . $destroy ( ) ; assert . deepEqual ( warnings , [ 'Component was already destroyed' ] ) ; console . warn = warn ; } } ;