Skip to content

Commit 3ee2beb

Browse files
committed
env. change
2 parents e436f69 + a11e694 commit 3ee2beb

14 files changed

+103
-87
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Testspace](http://www.testspace.com/public/img/testspace_logo.png)](http://www.testspace.com)
22
***
33

4-
## JavaScript/Jasmine sample for demonstrating Testspace based on the [javascript-algorithms repo](mgechev/javascript-algorithms)
4+
## JavaScript/Jasmine sample for demonstrating Testspace based on the [javascript-algorithms repo](https://github.com/mgechev/javascript-algorithms)
55

66
Sample demonstrates techniques for using Testspace with Javascript code and the [Jasmine test framework](http://jasmine.github.io/) together with [Istanbul code coverage tool](https://gotwarlost.github.io/istanbul/) and [Gulp JS build system](http://gulpjs.com/).
77

test/others/levenshtein-distance.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var mod = require('../../src/others/levenshtein-distance.js');
44
var levenshteinDistance = mod.levenshteinDistance;
55

6-
describe('Levenstein\'s minimum edit distance algorithm', function () {
6+
describe('Levenstein minimum edit distance algorithm', function () {
77
it('should be defined', function () {
88
expect(levenshteinDistance).toBeDefined();
99
});

test/sorting/bubblesort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var bubbleSort =
33
require('../../src/sorting/bubblesort.js').bubbleSort;
44

5-
sortTestCase(bubbleSort, 'Bubble sort');
5+
describe('Bubble sort', function () {
6+
sortTestCases(bubbleSort);
7+
});

test/sorting/heapsort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var heapSort = require('../../src/sorting/heapsort.js').heapSort;
33

4-
sortTestCase(heapSort, 'Heap sort');
4+
describe('Heap sort', function () {
5+
sortTestCases(heapSort);
6+
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var insertionBinarySort =
33
require('../../src/sorting/' +
44
'insertion-binary-sort.js').insertionBinarySort;
55

6-
sortTestCase(insertionBinarySort, 'Insertion binary sort');
6+
describe('Insertion binary sort', function () {
7+
sortTestCases(insertionBinarySort);
8+
});

test/sorting/insertionsort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var insertionSort = require('../../src/sorting/' +
33
'insertionsort.js').insertionSort;
44

5-
sortTestCase(insertionSort, 'Insertion sort');
5+
describe('Insertion sort', function () {
6+
sortTestCases(insertionSort);
7+
});

test/sorting/mergesort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var mergeSort =
33
require('../../src/sorting/mergesort.js').mergeSort;
44

5-
sortTestCase(mergeSort, 'Merge sort');
5+
describe('Merge sort', function () {
6+
sortTestCases(mergeSort);
7+
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var quickSort =
33
require('../../src/sorting/quicksort-middle.js').quickSort;
44

5-
sortTestCase(quickSort, 'Quick sort');
5+
describe('Quick sort middle', function () {
6+
sortTestCases(quickSort);
7+
});

test/sorting/quicksort.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var quickSort =
33
require('../../src/sorting/quicksort.js').quickSort;
44

5-
sortTestCase(quickSort, 'Quick sort');
5+
describe('Quick sort', function () {
6+
sortTestCases(quickSort);
7+
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
var sortTestCase = require('./sort.testcase.js');
1+
var sortTestCases = require('./sort.testcases.js');
22
var recursiveInsertionSort = require('../../src/sorting/' +
33
'recursive-insertionsort.js').recursiveInsertionSort;
44

5-
sortTestCase(recursiveInsertionSort, 'Recursive insertion sort');
5+
describe('Recursive insertion sort', function () {
6+
sortTestCases(recursiveInsertionSort);
7+
});

0 commit comments

Comments
 (0)