Code coverage report for spec/algo/1-strings/permutation.spec.js

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (9 / 9)      Ignored: none     

All files » spec/algo/1-strings/ » permutation.spec.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161   1   1 1 1   1 1     1 1    
var isPermutation = require("../../../lib/algorithms/1-strings/permutation.js");
 
describe('When comparing two strings using isPermutation() ', function () {
 
	var testValue1 = "test_string_is_so_great";
	var testValue2 = "_t_greing_tssoatestris_";
	var testValue3 = "qwertyuioplkjhgfdsazxcv"
 
	it('that are permutations the method should return true.', function () {
		expect(isPermutation(testValue1, testValue2)).toBe(true);
	});
 
	it('that are not permutations the method should return false.', function () {
		expect(isPermutation(testValue1, testValue3)).toBe(false);
	});
});