@@ -25,7 +25,7 @@ Item {
2525 width: units.gu(60)
2626 height: units.gu(80)
2727
28− property var calls
28+ property var calls: []
2929
3030 SignalSpy {
3131 id: sendPreviewSpy
@@ -99,6 +99,7 @@ Item {
9999 when: windowShown
100100
101101 function cleanup() {
102+ root.calls = new Array();
102103 sendPreviewSpy.clear();
103104 var reviewField = findChild(appPreview, "reviewField");
104105 reviewField.focus = false;
@@ -106,7 +107,6 @@ Item {
106107 }
107108
108109 function test_actions() {
109− root.calls = new Array();
110110 var buttons = findChild(appPreview, "gridButtons");
111111 compare(buttons.count, 3, "Not the proper amount of actions detected.");
112112