{"size": 652, "ext": "js", "max_stars_repo_path": "go/base/static/js/test/components/stateMachine.test.js", "max_stars_repo_name": "lynnUg/vumi-go", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "go/base/static/js/test/components/stateMachine.test.js", "max_issues_repo_name": "lynnUg/vumi-go", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "go/base/static/js/test/components/stateMachine.test.js", "max_forks_repo_name": "lynnUg/vumi-go", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.08, "max_line_length": 73, "alphanum_fraction": 0.6150306748}
describe("go.components.stateMachine", function() {
  var stateMachine = go.components.stateMachine;

  afterEach(function() {
    go.testHelpers.unregisterModels();
  });

  describe(".ConnectionModel", function() {
    var EndpointModel = stateMachine.EndpointModel,
        ConnectionModel = stateMachine.ConnectionModel;

    describe(".parse", function() {
      it("should set the uuid attr based on the source and target attrs",
      function() {
        var attrs = ConnectionModel.prototype.parse({
          source: {uuid: 'a'},
          target: {uuid: 'b'}
        });

        assert.equal(attrs.uuid, 'a-b');
      });
    });
  });
});
