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
d26b8f5e
Unverified
Commit
d26b8f5e
authored
Sep 07, 2017
by
Robert Knight
Committed by
Sean Hammond
Nov 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated fakeAuth.login stub
parent
5b8f6033
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
session-test.js
src/sidebar/test/session-test.js
+0
-6
No files found.
src/sidebar/test/session-test.js
View file @
d26b8f5e
...
...
@@ -107,7 +107,6 @@ describe('sidebar.session', function () {
context
(
'when using OAuth for first-party accounts'
,
()
=>
{
beforeEach
(()
=>
{
fakeAuth
.
login
=
sinon
.
stub
().
returns
(
Promise
.
resolve
());
fakeStore
.
profile
.
read
.
returns
(
Promise
.
resolve
({
userid
:
'acct:user@hypothes.is'
,
}));
...
...
@@ -179,9 +178,6 @@ describe('sidebar.session', function () {
describe
(
'#reload'
,
()
=>
{
beforeEach
(()
=>
{
// Use OAuth
fakeAuth
.
login
=
sinon
.
stub
().
returns
(
Promise
.
resolve
());
// Load the initial profile data, as the client will do on startup.
fakeStore
.
profile
.
read
.
returns
(
Promise
.
resolve
({
userid
:
'acct:user_a@hypothes.is'
,
...
...
@@ -204,7 +200,6 @@ describe('sidebar.session', function () {
beforeEach
(()
=>
{
var
loggedIn
=
true
;
fakeAuth
.
login
=
sinon
.
stub
().
returns
(
Promise
.
resolve
());
fakeAuth
.
logout
=
sinon
.
spy
(()
=>
{
loggedIn
=
false
;
return
Promise
.
resolve
();
...
...
@@ -238,7 +233,6 @@ describe('sidebar.session', function () {
context
(
'when another client changes the current login'
,
()
=>
{
it
(
'reloads the profile'
,
()
=>
{
fakeAuth
.
login
=
sinon
.
stub
().
returns
(
Promise
.
resolve
());
fakeStore
.
profile
.
read
.
returns
(
Promise
.
resolve
({
userid
:
'acct:initial_user@hypothes.is'
,
}));
...
...
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