Commit 1cadf902 authored by Robert Knight's avatar Robert Knight

Give several annotation tests clearer names

parent 5408f2f3
...@@ -377,7 +377,7 @@ describe('annotation', function() { ...@@ -377,7 +377,7 @@ describe('annotation', function() {
}); });
}); });
describe('.isHighlight()', function() { describe('#isHighlight()', function() {
it('returns true for new highlights', function() { it('returns true for new highlights', function() {
var annotation = fixtures.newHighlight(); var annotation = fixtures.newHighlight();
...@@ -906,8 +906,8 @@ describe('annotation', function() { ...@@ -906,8 +906,8 @@ describe('annotation', function() {
}); });
}); });
describe('onGroupFocused()', function() { describe('when the focused group changes', function() {
it('updates domainModel.group if the annotation is new', function () { it('moves new annotations to the focused group', function () {
var annotation = fixtures.newAnnotation(); var annotation = fixtures.newAnnotation();
annotation.group = 'old-group-id'; annotation.group = 'old-group-id';
createDirective(annotation); createDirective(annotation);
...@@ -918,7 +918,7 @@ describe('annotation', function() { ...@@ -918,7 +918,7 @@ describe('annotation', function() {
assert.equal(annotation.group, 'new-group-id'); assert.equal(annotation.group, 'new-group-id');
}); });
it('does not update domainModel.group if the annotation is not new', it('does not modify the group of saved annotations',
function () { function () {
var annotation = fixtures.oldAnnotation(); var annotation = fixtures.oldAnnotation();
annotation.group = 'old-group-id'; annotation.group = 'old-group-id';
...@@ -932,7 +932,6 @@ describe('annotation', function() { ...@@ -932,7 +932,6 @@ describe('annotation', function() {
); );
}); });
describe('reverting edits', function () { describe('reverting edits', function () {
it('removes the current draft', function() { it('removes the current draft', function() {
var controller = createDirective(fixtures.defaultAnnotation()).controller; var controller = createDirective(fixtures.defaultAnnotation()).controller;
...@@ -950,7 +949,7 @@ describe('annotation', function() { ...@@ -950,7 +949,7 @@ describe('annotation', function() {
}); });
describe('tag display', function () { describe('tag display', function () {
it('displays annotation tags', function () { it('displays links to tags on the stream', function () {
var directive = createDirective({ var directive = createDirective({
id: '1234', id: '1234',
tags: ['atag'] tags: ['atag']
......
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