Last active
August 20, 2018 05:45
-
-
Save jholland918/8978fc5f756ef3a4176355666ebd1a79 to your computer and use it in GitHub Desktop.
My basic chutzpah config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var someFoo = { | |
baz: "bar", | |
doQux: function (a, b) { | |
return a + b; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" ] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="my-fixture">some complex content here</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasmine.getFixtures().fixturesPath = 'spec/fixtures'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment