I want to throw and error in a method of component called from other component than I\'m testing
// Class1.js class Class1 { getData() { return { data }