mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 07:36:01 +00:00
Fix tests
This commit is contained in:
parent
721962589c
commit
0fbc342fe3
|
@ -76,34 +76,36 @@ export let epsilon: API = {
|
|||
client: new LemmyHttp('http://localhost:8581'),
|
||||
};
|
||||
|
||||
const password = 'lemmylemmy'
|
||||
|
||||
export async function setupLogins() {
|
||||
let formAlpha: Login = {
|
||||
username_or_email: 'lemmy_alpha',
|
||||
password: 'lemmy',
|
||||
password,
|
||||
};
|
||||
let resAlpha = alpha.client.login(formAlpha);
|
||||
|
||||
let formBeta = {
|
||||
username_or_email: 'lemmy_beta',
|
||||
password: 'lemmy',
|
||||
password,
|
||||
};
|
||||
let resBeta = beta.client.login(formBeta);
|
||||
|
||||
let formGamma = {
|
||||
username_or_email: 'lemmy_gamma',
|
||||
password: 'lemmy',
|
||||
password,
|
||||
};
|
||||
let resGamma = gamma.client.login(formGamma);
|
||||
|
||||
let formDelta = {
|
||||
username_or_email: 'lemmy_delta',
|
||||
password: 'lemmy',
|
||||
password,
|
||||
};
|
||||
let resDelta = delta.client.login(formDelta);
|
||||
|
||||
let formEpsilon = {
|
||||
username_or_email: 'lemmy_epsilon',
|
||||
password: 'lemmy',
|
||||
password,
|
||||
};
|
||||
let resEpsilon = epsilon.client.login(formEpsilon);
|
||||
|
||||
|
@ -510,8 +512,8 @@ export async function registerUser(
|
|||
): Promise<LoginResponse> {
|
||||
let form: Register = {
|
||||
username,
|
||||
password: 'test',
|
||||
password_verify: 'test',
|
||||
password,
|
||||
password_verify: password,
|
||||
show_nsfw: true,
|
||||
};
|
||||
return api.client.register(form);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
jwt_secret: changeme
|
||||
setup: {
|
||||
admin_username: lemmy_alpha
|
||||
admin_password: lemmy
|
||||
admin_password: lemmylemmy
|
||||
site_name: lemmy-alpha
|
||||
sidebar: alphas sidebar
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
jwt_secret: changeme
|
||||
setup: {
|
||||
admin_username: lemmy_beta
|
||||
admin_password: lemmy
|
||||
admin_password: lemmylemmy
|
||||
site_name: lemmy-beta
|
||||
}
|
||||
database: {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
jwt_secret: changeme
|
||||
setup: {
|
||||
admin_username: lemmy_delta
|
||||
admin_password: lemmy
|
||||
admin_password: lemmylemmy
|
||||
site_name: lemmy-delta
|
||||
}
|
||||
database: {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
jwt_secret: changeme
|
||||
setup: {
|
||||
admin_username: lemmy_epsilon
|
||||
admin_password: lemmy
|
||||
admin_password: lemmylemmy
|
||||
site_name: lemmy-epsilon
|
||||
}
|
||||
database: {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
jwt_secret: changeme
|
||||
setup: {
|
||||
admin_username: lemmy_gamma
|
||||
admin_password: lemmy
|
||||
admin_password: lemmylemmy
|
||||
site_name: lemmy-gamma
|
||||
}
|
||||
database: {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# username for the admin user
|
||||
admin_username: "lemmy"
|
||||
# password for the admin user
|
||||
admin_password: "lemmy"
|
||||
admin_password: "lemmylemmy"
|
||||
# name of the site (can be changed later)
|
||||
site_name: "lemmy-test"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue