Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
eddda6fd
Commit
eddda6fd
authored
Jan 16, 2015
by
ujvari
Committed by
Randall Leeds
Jan 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix privacy tests
parent
f70fde7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
privacy-test.coffee
tests/js/directives/privacy-test.coffee
+5
-7
No files found.
tests/js/directives/privacy-test.coffee
View file @
eddda6fd
...
...
@@ -17,7 +17,6 @@ describe 'h.directives.privacy', ->
describe
'memory fallback'
,
->
fakeAuth
=
null
fakeWindow
=
null
sandbox
=
null
beforeEach
module
(
$provide
)
->
...
...
@@ -27,24 +26,23 @@ describe 'h.directives.privacy', ->
user
:
'acct:angry.joe@texas.com'
}
fakeWindow
=
{
localStorage
:
undefined
}
$provide
.
value
'auth'
,
fakeAuth
$provide
.
value
'$window'
,
fakeWindow
return
afterEach
->
sandbox
.
restore
()
describe
'has memory fallback'
,
->
$window
=
null
$scope2
=
null
beforeEach
inject
(
_$compile_
,
_$rootScope_
)
->
beforeEach
inject
(
_$compile_
,
_$rootScope_
,
_$window_
)
->
$compile
=
_$compile_
$scope
=
_$rootScope_
.
$new
()
$scope2
=
_$rootScope_
.
$new
()
$window
=
_$window_
$window
.
localStorage
=
null
it
'stores the default visibility level when it changes'
,
->
$scope
.
permissions
=
{
read
:
[
'acct:user@example.com'
]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment