Skip to content

Commit

Permalink
Merge pull request #91 from DarmawanEfendi/develop
Browse files Browse the repository at this point in the history
MEID test ga
  • Loading branch information
DarmawanEfendi authored Oct 17, 2019
2 parents 0da69cb + bc588c7 commit edf90a3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const express = require('express');
const app = express();

app.get('/', (req, res) => res.send('Hello World!!!!!'));
// app.get('/test', (req, res) => res.send('Hello World!!!'));
// app.get('/test2', (req, res) => res.send('Hello World!!!'));
app.get('/test', (req, res) => res.send('Hello World!!!'));
app.get('/test2', (req, res) => res.send('Hello World!!!'));

module.exports = app;
78 changes: 39 additions & 39 deletions test/test-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,43 @@ describe("GET /", function() {
});
});

// it("it should test has status code 200", function(done) {
// request(app)
// .get("/test")
// .expect(200)
// .end(function(err, res){
// if (err) done(err);
// done();
// });
// });
//
// it("it should test has hello world", function(done) {
// request(app)
// .get("/test")
// .expect('Hello World!!!')
// .end(function(err, res){
// if (err) done(err);
// done();
// });
// });
//
// it("it should test has status code 200", function(done) {
// request(app)
// .get("/test2")
// .expect(200)
// .end(function(err, res){
// if (err) done(err);
// done();
// });
// });
//
// it("it should test has hello world", function(done) {
// request(app)
// .get("/test2")
// .expect('Hello World!!!')
// .end(function(err, res){
// if (err) done(err);
// done();
// });
// });
it("it should test has status code 200", function(done) {
request(app)
.get("/test")
.expect(200)
.end(function(err, res){
if (err) done(err);
done();
});
});

it("it should test has hello world", function(done) {
request(app)
.get("/test")
.expect('Hello World!!!')
.end(function(err, res){
if (err) done(err);
done();
});
});

it("it should test has status code 200", function(done) {
request(app)
.get("/test2")
.expect(200)
.end(function(err, res){
if (err) done(err);
done();
});
});

it("it should test has hello world", function(done) {
request(app)
.get("/test2")
.expect('Hello World!!!')
.end(function(err, res){
if (err) done(err);
done();
});
});
});

0 comments on commit edf90a3

Please sign in to comment.