From 518fe819aee389e9ff7a130c061123124c8ad903 Mon Sep 17 00:00:00 2001 From: segayuu Date: Tue, 4 Jun 2019 14:02:09 +0900 Subject: [PATCH] Remove Deprecation from kelektiv/node-uuid#240 (#88) --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 7f65554..2e927ff 100644 --- a/test/index.js +++ b/test/index.js @@ -8,7 +8,7 @@ const request = require('supertest-promised'); const { join } = require('path'); const fs = require('hexo-fs'); const Promise = require('bluebird'); -const uuid = require('uuid'); +const uuidv4 = require('uuid/v4'); const sinon = require('sinon'); describe('server', () => { @@ -55,7 +55,7 @@ describe('server', () => { return server(options).then(app => { app.on('connection', conn => { - const id = uuid.v4(); + const id = uuidv4(); connections[id] = conn;