fixing bugs..>
This commit is contained in:
parent
923e6c6716
commit
c2d444f808
6 changed files with 479 additions and 9 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 10009efb45995dc6a01ae941e8e539e2226a115c
|
Subproject commit 29318b29d35ac8d8bfb137a5e739a308e01c1829
|
|
@ -56,10 +56,14 @@ const readableFileStream = root => async path =>
|
||||||
join(root, path), "utf8"
|
join(root, path), "utf8"
|
||||||
);
|
);
|
||||||
|
|
||||||
const writableFileStream = root => async path =>
|
const writableFileStream = root => path =>
|
||||||
fs.createWriteStream(
|
new Promise((resolve, reject) => {
|
||||||
join(root, path), "utf8"
|
const stream = fs.createWriteStream(
|
||||||
);
|
join(root, path),
|
||||||
|
"utf8");
|
||||||
|
stream.on("open", () => resolve(stream));
|
||||||
|
stream.on("error", reject);
|
||||||
|
});
|
||||||
|
|
||||||
const getFolderContents = root => async path =>
|
const getFolderContents = root => async path =>
|
||||||
await readdir(
|
await readdir(
|
||||||
|
|
38
packages/server/.vscode/launch.json
vendored
Normal file
38
packages/server/.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Jest All",
|
||||||
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||||||
|
"args": ["--runInBand"],
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"internalConsoleOptions": "neverOpen",
|
||||||
|
"disableOptimisticBPs": true,
|
||||||
|
"windows": {
|
||||||
|
"program": "${workspaceFolder}/node_modules/jest-cli/bin/jest",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Jest Current File",
|
||||||
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||||||
|
"args": [
|
||||||
|
"${fileBasenameNoExtension}",
|
||||||
|
"--config",
|
||||||
|
"jest.config.js"
|
||||||
|
],
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"internalConsoleOptions": "neverOpen",
|
||||||
|
"disableOptimisticBPs": true,
|
||||||
|
"windows": {
|
||||||
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
|
@ -107,6 +107,13 @@ module.exports = (app) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should be able with re-authenticate when user is enabled again", async () => {
|
it("should be able with re-authenticate when user is enabled again", async () => {
|
||||||
|
|
||||||
|
await app.post("/_master/api/enableUser", {
|
||||||
|
username: testUserName
|
||||||
|
})
|
||||||
|
.set("cookie", ownerCookie)
|
||||||
|
.expect(statusCodes.OK);
|
||||||
|
|
||||||
await app.post("/_master/api/authenticate", {
|
await app.post("/_master/api/authenticate", {
|
||||||
username: testUserName,
|
username: testUserName,
|
||||||
password: testPassword
|
password: testPassword
|
||||||
|
|
|
@ -161,9 +161,8 @@ module.exports = async (config) => {
|
||||||
const sessions = await bb.indexApi.listItems(
|
const sessions = await bb.indexApi.listItems(
|
||||||
"/mastersessions_by_user",
|
"/mastersessions_by_user",
|
||||||
{
|
{
|
||||||
rangeStartParams:{name:username},
|
rangeStartParams:{username},
|
||||||
rangeEndParams:{name:username},
|
rangeEndParams:{username}
|
||||||
searchPhrase:`username:${username}`
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue