<NME> 42 bg appear second artboard.txt
<BEF> bg = new Layer width: 178*retina, height: 197*retina, x: 39*retina, y: 214*retina, backgroundColor: "rgba(59,59,59,1)"
nice = new Layer image: "images/nice.png"

nice.states.add {
	position_a: { width: 240*retina, height: 240*retina, x: 68*retina, y: 94*retina}
	position_b: { width: 120*retina, height: 120*retina, x: 128*retina, y: 154*retina}
}
nice.states.switchInstant "position_a"

topper = new Layer width: 178*retina, height: 197*retina, x: 188*retina, y: 38*retina, backgroundColor: "rgba(216,216,216,1)"

<MSG> Updated tests for Framer v78

– Testing Inventory is updated to support new way to run actions &
context
– Added load/save defaults functionality to run testing environment
without changing the settings
– Tests support new Framer v78 syntax for states
– Writing defaults to file while testing in case of unexpected error

<DFF> @@ -1,10 +1,11 @@
 bg = new Layer width: 178*retina, height: 197*retina, x: 39*retina, y: 214*retina, backgroundColor: "rgba(59,59,59,1)"
+
 nice = new Layer image: "images/nice.png"
 
-nice.states.add {
-	position_a: { width: 240*retina, height: 240*retina, x: 68*retina, y: 94*retina}
-	position_b: { width: 120*retina, height: 120*retina, x: 128*retina, y: 154*retina}
-}
-nice.states.switchInstant "position_a"
+nice.states =
+	"position_a": { width: 240*retina, height: 240*retina, x: 68*retina, y: 94*retina }
+	"position_b": { width: 120*retina, height: 120*retina, x: 128*retina, y: 154*retina }
+
+nice.stateSwitch("position_a")
 
 topper = new Layer width: 178*retina, height: 197*retina, x: 188*retina, y: 38*retina, backgroundColor: "rgba(216,216,216,1)"

Updated tests for Framer v78