Skip to content

Commit

Permalink
Fix wrong nesting of describe and make reset method specs in standard…
Browse files Browse the repository at this point in the history
… format

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>
  • Loading branch information
Kaustav Das Modak committed Dec 14, 2014
1 parent 2f9d12b commit 7144b8b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/methodSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,23 @@ describe("Applait.Finder.prototype.storagecount method", function () {
expect(finder.storagecount()).toBe(0);
});

describe("Applait.Finder.prototype reset function", function () {
});

var finder = new Applait.Finder();
describe("Applait.Finder.prototype.reset method", function () {

/* Assigning garbage values */
finder.filematchcount = 25;
finder.searchcompletecount = 10;
finder.searchkey = "jpg";
var finder = new Applait.Finder();

finder.reset();
/* Assigning garbage values */
finder.filematchcount = 25;
finder.searchcompletecount = 10;
finder.searchkey = "jpg";

it("reset function cleans up data properly", function() {
expect(finder.filematchcount).toBe(0);
expect(finder.searchcompletecount).toBe(0);
expect(finder.searchkey).toBe("");
});
finder.reset();

it("should clean up data properly", function() {
expect(finder.filematchcount).toBe(0);
expect(finder.searchcompletecount).toBe(0);
expect(finder.searchkey).toBe("");
});

});

0 comments on commit 7144b8b

Please sign in to comment.