Skip to content

Instantly share code, notes, and snippets.

@jholland918
Last active August 20, 2018 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jholland918/8978fc5f756ef3a4176355666ebd1a79 to your computer and use it in GitHub Desktop.
Save jholland918/8978fc5f756ef3a4176355666ebd1a79 to your computer and use it in GitHub Desktop.
My basic chutzpah config
var someFoo = {
baz: "bar",
doQux: function (a, b) {
return a + b;
}
};
{
"Framework": "jasmine",
"EnableTestFileBatching": true,
"TestHarnessLocationMode": "SettingsFileAdjacent",
"Server": {
"Enabled": true,
"RootPath": "./"
},
"References": [
{
"Path": "Scripts/jquery-1.10.2.min.js",
"IsTestFrameworkFile": true
},
{
"Path": "spec/vendor/jasmine-jquery.js",
"IsTestFrameworkFile": true
},
{
"Path": "spec/jasmine-config.js",
"IsTestFrameworkFile": true
},
{
"Path": "App",
"Includes": [ "*.js" ]
}
],
"Tests": [
{
"Path": "spec",
"Includes": [ "*.spec.js" ]
}
]
}
<div id="my-fixture">some complex content here</div>
describe("Some Foo", function () {
it("should do qux", function () {
var expected = 3;
var actual = someFoo.doQux(1, 2);
expect(actual).toBe(expected);
});
it("should do grunt", function () {
//setFixtures('<div id="my-fixture">some complex content here</div>');
loadFixtures("some-foo.html");
//$("#my-fixture").myTestedPlugin();
expect($("#my-fixture")).toContainText("some complex content here");
});
});
jasmine.getFixtures().fixturesPath = 'spec/fixtures';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment