Skip to content

Commit 9bb5bb2

Browse files
committedMay 2, 2020
Better do requires at the root of modules
1 parent 29548d2 commit 9bb5bb2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎packages/convict-format-with-moment/test/format.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict'
22

33
const moment = require('moment')
4+
const convict = require('convict')
45

56
describe('convict formats', function() {
6-
const convict = require('convict')
77
let conf
88

99
test('must add "duration" and "timestamp" format with convict-format-with-moment', function() {

‎packages/convict-format-with-validator/test/format.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use strict'
22

3+
const convict = require('convict')
4+
35
describe('convict formats', function() {
4-
const convict = require('convict')
56
let conf
67

78
test('must add formats ("email", "ipaddress" and "url") with convict-format-with-validator', function() {

0 commit comments

Comments
 (0)
Please sign in to comment.