Commit 2f1fc9e0 authored by Robert Knight's avatar Robert Knight

Correct `describe` block names

 - Use relative module path for the outer block name
 - The `#` prefix is reserved for methods
parent 6eb68bb6
......@@ -22,7 +22,7 @@ function roundCoords(rect) {
};
}
describe('annotator.range-util', () => {
describe('annotator/range-util', () => {
let selection;
let testNode;
......@@ -45,7 +45,7 @@ describe('annotator.range-util', () => {
selection.addRange(range);
}
describe('#isNodeInRange', () => {
describe('isNodeInRange', () => {
it('returns true for a node in the range', () => {
const range = createRange(testNode, 0, 1);
assert.isTrue(rangeUtil.isNodeInRange(range, testNode.firstChild));
......@@ -80,7 +80,7 @@ describe('annotator.range-util', () => {
});
});
describe('#getTextBoundingBoxes', () => {
describe('getTextBoundingBoxes', () => {
it('gets the bounding box of a range in a text node', () => {
testNode.innerHTML = 'plain text';
const rng = createRange(testNode.firstChild, 0, 5);
......@@ -119,7 +119,7 @@ describe('annotator.range-util', () => {
});
});
describe('#selectionFocusRect', () => {
describe('selectionFocusRect', () => {
it('returns null if the selection is empty', () => {
assert.isNull(rangeUtil.selectionFocusRect(selection));
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment