message: test: improve test for state.
diff: @@ -124,8 +124,12 @@ describe('Path', function () {
  emphasis: clone(emphasisState)
  };
  + expect(rect.currentState).toEqual('normal');
  +
  rect.useState('emphasis');
  + expect(rect.currentState).toEqual('emphasis');
  +
  expect(rect.position).toEqual([100, 100]);
  expect(rect.rotation).toBe(10);
  expect(rect.scale).toEqual([2, 2]);
  @@ -159,6 +163,8 @@ describe('Path', function () {
  // Switch back to normal
  rect.useState('normal');
  + expect(rect.currentState).toEqual('normal');
  +
  expect(rect.position).toEqual([0, 0]);
  expect(rect.rotation).toEqual(0);
  expect(rect.scale).toEqual([1, 1]);
  