Skip to content

support for templated static fixtures#126

Open
arjunballa wants to merge 4 commits intojupiterjs:masterfrom
arjunballa:master
Open

support for templated static fixtures#126
arjunballa wants to merge 4 commits intojupiterjs:masterfrom
arjunballa:master

Conversation

@arjunballa
Copy link

  • all test cases pass
  • also added documentation

// Now Templated urls can also be used with templated static fixtures.

$.fixture({
type : "GET",
url : "/todos/{id}",
}, "//jquery/dom/fixture/fixtures/test.{id}.json");

// below ajax call looks for jquery/dom/fixture/fixtures/test.911.json fixture
$.get("/todo/911", function(data) {
// data is json object constructed from //jquery/dom/fixture/fixtures/test.911.json fixture
}, "json");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant