1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update settings test for global git user

This commit is contained in:
Nick O'Leary 2018-01-24 21:24:54 +00:00
parent 6a9213da64
commit 20a0e4f3e0
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -91,7 +91,8 @@ describe("api/editor/settings", function() {
projects: { projects: {
getActiveProject: () => 'test-active-project', getActiveProject: () => 'test-active-project',
getFlowFilename: () => 'test-flow-file', getFlowFilename: () => 'test-flow-file',
getCredentialsFilename: () => 'test-creds-file' getCredentialsFilename: () => 'test-creds-file',
getGlobalGitUser: () => {return {name:'foo',email:'foo@example.com'}}
} }
} }
}); });
@ -106,6 +107,8 @@ describe("api/editor/settings", function() {
res.body.should.have.property("files"); res.body.should.have.property("files");
res.body.files.should.have.property("flow",'test-flow-file'); res.body.files.should.have.property("flow",'test-flow-file');
res.body.files.should.have.property("credentials",'test-creds-file'); res.body.files.should.have.property("credentials",'test-creds-file');
res.body.should.have.property("git");
res.body.git.should.have.property("globalUser",{name:'foo',email:'foo@example.com'});
done(); done();
}); });
}); });