Skip to content

Commit 7144b8b

Browse files
author
Kaustav Das Modak
committed
Fix wrong nesting of describe and make reset method specs in standard format
Signed-off-by: Kaustav Das Modak <[email protected]>
1 parent 2f9d12b commit 7144b8b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/methodSpec.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,23 +175,23 @@ describe("Applait.Finder.prototype.storagecount method", function () {
175175
expect(finder.storagecount()).toBe(0);
176176
});
177177

178-
describe("Applait.Finder.prototype reset function", function () {
178+
});
179179

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

182-
/* Assigning garbage values */
183-
finder.filematchcount = 25;
184-
finder.searchcompletecount = 10;
185-
finder.searchkey = "jpg";
182+
var finder = new Applait.Finder();
186183

187-
finder.reset();
184+
/* Assigning garbage values */
185+
finder.filematchcount = 25;
186+
finder.searchcompletecount = 10;
187+
finder.searchkey = "jpg";
188188

189-
it("reset function cleans up data properly", function() {
190-
expect(finder.filematchcount).toBe(0);
191-
expect(finder.searchcompletecount).toBe(0);
192-
expect(finder.searchkey).toBe("");
193-
});
189+
finder.reset();
194190

191+
it("should clean up data properly", function() {
192+
expect(finder.filematchcount).toBe(0);
193+
expect(finder.searchcompletecount).toBe(0);
194+
expect(finder.searchkey).toBe("");
195195
});
196196

197197
});

0 commit comments

Comments
 (0)