Skip to content

Commit

Permalink
删除requirejs的语法
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfish2020 committed Jun 6, 2019
1 parent df22999 commit 9653496
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {IncomingMessage, OutgoingMessage} from "http";

const http = require("http");
import http from "http";

export default http.createServer((req: IncomingMessage, res: OutgoingMessage) => {
res.write("hello world");
Expand Down
1 change: 1 addition & 0 deletions test/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import request from "supertest";

import server from "../src/server";
Expand Down
1 change: 0 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
]
},
"rules": {
"no-var-requires": false,
"no-console": false
}
}

0 comments on commit 9653496

Please sign in to comment.