From 20a0e4f3e0ff789880ba972936824715e4185151 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 24 Jan 2018 21:24:54 +0000 Subject: [PATCH] Update settings test for global git user --- test/red/api/editor/settings_spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/red/api/editor/settings_spec.js b/test/red/api/editor/settings_spec.js index efcf239f6..826a5bcef 100644 --- a/test/red/api/editor/settings_spec.js +++ b/test/red/api/editor/settings_spec.js @@ -91,7 +91,8 @@ describe("api/editor/settings", function() { projects: { getActiveProject: () => 'test-active-project', 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.files.should.have.property("flow",'test-flow-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(); }); });