Don't add periods to the full name of a spec
- Breaks links for spec filters - Looks strange if users add their own [fix #58043244] fix #427
This commit is contained in:
@@ -451,7 +451,7 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var getSpecName = function(spec, currentSuite) {
|
var getSpecName = function(spec, currentSuite) {
|
||||||
return currentSuite.getFullName() + ' ' + spec.description + '.';
|
return currentSuite.getFullName() + ' ' + spec.description;
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: we may just be able to pass in the fn instead of wrapping here
|
// TODO: we may just be able to pass in the fn instead of wrapping here
|
||||||
|
|||||||
@@ -485,9 +485,9 @@ describe("Env integration", function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(topLevelSpec.getFullName()).toBe("my tests are sometimes top level.");
|
expect(topLevelSpec.getFullName()).toBe("my tests are sometimes top level");
|
||||||
expect(nestedSpec.getFullName()).toBe("my tests are sometimes singly nested.");
|
expect(nestedSpec.getFullName()).toBe("my tests are sometimes singly nested");
|
||||||
expect(doublyNestedSpec.getFullName()).toBe("my tests are sometimes even doubly nested.");
|
expect(doublyNestedSpec.getFullName()).toBe("my tests are sometimes even doubly nested");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Custom equality testers should be per spec", function(done) {
|
it("Custom equality testers should be per spec", function(done) {
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var getSpecName = function(spec, currentSuite) {
|
var getSpecName = function(spec, currentSuite) {
|
||||||
return currentSuite.getFullName() + ' ' + spec.description + '.';
|
return currentSuite.getFullName() + ' ' + spec.description;
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: we may just be able to pass in the fn instead of wrapping here
|
// TODO: we may just be able to pass in the fn instead of wrapping here
|
||||||
|
|||||||
Reference in New Issue
Block a user