You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tap.test('converts old JS annotations into new format',function(test){
25
+
tap.test('converts old JS annotations into new format',function(test){
26
26
//arrange
27
27
//act
28
28
varannotations=ae.gatherJS();
@@ -31,12 +31,15 @@ tap.test('converts old JS annotations into new format', function (test) {
31
31
test.equals(annotations.length,2);
32
32
test.equals(annotations[1].el,'.logo');
33
33
test.equals(annotations[1].title,'Logo');
34
-
test.equals(annotations[1].comment,"The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.</p><p>Further reading: <a href=\"http://bradfrostweb.com/blog/mobile/hi-res-optimization/\">Optimizing Web Experiences for High Resolution Screens</a></p>");
34
+
test.equals(
35
+
annotations[1].comment,
36
+
'The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don\'t support SVG images.</p><p>Further reading: <a href="http://bradfrostweb.com/blog/mobile/hi-res-optimization/">Optimizing Web Experiences for High Resolution Screens</a></p>'
37
+
);
35
38
36
39
test.end();
37
40
});
38
41
39
-
tap.test('converts new markdown annotations into an array',function(test){
42
+
tap.test('converts new markdown annotations into an array',function(test){
40
43
//arrange
41
44
//act
42
45
varannotations=ae.gatherMD();
@@ -45,12 +48,15 @@ tap.test('converts new markdown annotations into an array', function (test) {
45
48
test.equals(annotations.length,3);
46
49
test.equals(annotations[1].el,'.logo');
47
50
test.equals(annotations[1].title,'Logo');
48
-
test.equals(annotations[1].comment.replace(/\r?\n|\r/gm,""),'<p>The <em>logo image</em> is an SVG file.</p>');
51
+
test.equals(
52
+
annotations[1].comment.replace(/\r?\n|\r/gm,''),
53
+
'<p>The <em>logo image</em> is an SVG file.</p>'
54
+
);
49
55
50
56
test.end();
51
57
});
52
58
53
-
tap.test('merges both annotation methods into one array',function(test){
59
+
tap.test('merges both annotation methods into one array',function(test){
54
60
//arrange
55
61
56
62
//act
@@ -60,12 +66,15 @@ tap.test('merges both annotation methods into one array', function (test) {
60
66
test.equals(annotations.length,3);
61
67
test.equals(annotations[2].el,'#nav');
62
68
test.equals(annotations[2].title,'Navigation');
63
-
test.equals(annotations[2].comment.replace(/\r?\n|\r/gm,""),'<p>Navigation for adaptive web experiences can be tricky. Refer to <a href="https://bradfrost.github.io/this-is-responsive/patterns.html#navigation">these repsonsive patterns</a> when evaluating solutions.</p>');
69
+
test.equals(
70
+
annotations[2].comment.replace(/\r?\n|\r/gm,''),
71
+
'<p>Navigation for adaptive web experiences can be tricky. Refer to <a href="https://bradfrost.github.io/this-is-responsive/patterns.html#navigation">these repsonsive patterns</a> when evaluating solutions.</p>'
72
+
);
64
73
65
74
test.end();
66
75
});
67
76
68
-
tap.test('when there are 0 annotation files',function(test){
77
+
tap.test('when there are 0 annotation files',function(test){
0 commit comments