Skip to content

Commit

Permalink
all tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
1f604 committed Feb 22, 2017
1 parent ed916aa commit 55880e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ function highlight(){
prefix = lng;
}
editor = vscode.window.activeTextEditor;
doc = editor.document;

doc = editor.document;
vscode.commands.executeCommand(close_other_editor_command_id)
.then(() => vscode.commands.executeCommand(markdown_preview_command_id))
.then(() => {}, (e) => console.error(e));
Expand Down
2 changes: 1 addition & 1 deletion src/httpsConnection/httpsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(data,callback) {
var options = {
host: 'innoflow.herokuapp.com',
port: 443,
path: '/api/innovation',
path: '/api/innovations',
method: 'POST',
headers: {
"Content-Type": "application/json"
Expand Down
6 changes: 3 additions & 3 deletions test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ suite("Extension Function Tests", () => {
});
test("should call login without errors", async ( ) => {

assert.ok(await vscode.commands.executeCommand('extension.login', "a", "b"));
assert.ok(await vscode.commands.executeCommand('extension.login', "[email protected]", "1234567890"));

});
test("should call highlight without errors", async ( ) => {
Expand All @@ -109,8 +109,8 @@ suite("Extension Function Tests", () => {

test("API calls to server should return status code 200", function (done) {
var data = JSON.stringify({
email : "userEmail",
password : "userPassword",
email : "[email protected]",
password : "1234567890",
code : Buffer.from("doc.getText()").toString('base64')
});
var httpsRequest = require('../src/httpsConnection/httpsRequest.js');
Expand Down

0 comments on commit 55880e0

Please sign in to comment.