mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-19 00:52:17 +02:00
feat: unify GitHub sign-in and connect OAuth for gists
This commit is contained in:
@@ -197,7 +197,7 @@ describe("frontend production regressions", function () {
|
||||
it("sends signed-out visitors to sign in instead of the dashboard", function () {
|
||||
const manage = f => f.key === "manage";
|
||||
const out = landing(null);
|
||||
expect(out.scope.featureHref(out.scope.features.find(manage))).to.equal("/github/login");
|
||||
expect(out.scope.featureHref(out.scope.features.find(manage))).to.equal("/signin");
|
||||
expect(out.scope.featureTarget(out.scope.features.find(manage))).to.equal("_self");
|
||||
const signedIn = landing({ username: "jane" });
|
||||
expect(signedIn.scope.featureHref(signedIn.scope.features.find(manage))).to.equal("/dashboard");
|
||||
|
||||
Reference in New Issue
Block a user