From 9ee2cdff44e7d496774b340de816344126c457b3 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Tue, 22 Nov 2011 21:28:39 -0800
Subject: refactor(directives): connect new compiler
- turn everything into a directive
---
test/service/filter/filtersSpec.js | 16 ++++------------
test/service/logSpec.js | 2 +-
2 files changed, 5 insertions(+), 13 deletions(-)
(limited to 'test/service')
diff --git a/test/service/filter/filtersSpec.js b/test/service/filter/filtersSpec.js
index cc006447..98651c58 100644
--- a/test/service/filter/filtersSpec.js
+++ b/test/service/filter/filtersSpec.js
@@ -153,14 +153,6 @@ describe('filters', function() {
});
});
- describe('html', function() {
- it('should do basic filter', function() {
- var html = filter('html')("acd");
- expect(html instanceof HTML).toBeTruthy();
- expect(html.html).toEqual("acd");
- });
- });
-
describe('linky', function() {
var linky;
@@ -169,7 +161,7 @@ describe('filters', function() {
}));
it('should do basic filter', function() {
- expect(linky("http://ab/ (http://a/) http://1.2/v:~-123. c").html).
+ expect(linky("http://ab/ (http://a/) http://1.2/v:~-123. c")).
toEqual('http://ab/ ' +
'(http://a/) ' +
'<http://a/> ' +
@@ -178,11 +170,11 @@ describe('filters', function() {
});
it('should handle mailto:', function() {
- expect(linky("mailto:me@example.com").html).
+ expect(linky("mailto:me@example.com")).
toEqual('me@example.com');
- expect(linky("me@example.com").html).
+ expect(linky("me@example.com")).
toEqual('me@example.com');
- expect(linky("send email to me@example.com, but").html).
+ expect(linky("send email to me@example.com, but")).
toEqual('send email to me@example.com, but');
});
});
diff --git a/test/service/logSpec.js b/test/service/logSpec.js
index 98158ae0..df2bc933 100644
--- a/test/service/logSpec.js
+++ b/test/service/logSpec.js
@@ -69,7 +69,7 @@ describe('$log', function() {
e.stack = undefined;
$log = new $LogProvider().$get[1]({console:{error:function() {
- errorArgs = arguments;
+ errorArgs = [].slice.call(arguments, 0);
}}});
});
--
cgit v1.2.3