Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit ba12835b
authored
Sep 15, 2018
by
Sushant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: remove unused packages
1 parent
130fb879
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
41 deletions
jsdoc.json
package.json
test/integration/instance.test.js
jsdoc.json
deleted
100644 → 0
View file @
130fb87
{
"plugins"
:
[
"plugins/markdown"
],
"markdown"
:
{
"parser"
:
"gfm"
},
"tags"
:
{
"allowUnknownTags"
:
false
},
"source"
:
{
"include"
:
[
"lib/"
,
"docs/index.md"
],
"excludePattern"
:
"(node_modules)"
},
"opts"
:
{
"template"
:
"node_modules/docdash"
,
"encoding"
:
"utf8"
,
"destination"
:
"newdocs/"
,
"recurse"
:
true
,
"tutorials"
:
"docs/"
},
"templates"
:
{
"outputSourcePath"
:
false
,
"outputSourceFiles"
:
false
,
"includeDate"
:
false
,
"sort"
:
false
}
}
\ No newline at end of file
package.json
View file @
ba12835
...
@@ -47,10 +47,8 @@
...
@@ -47,10 +47,8 @@
"chai-as-promised"
:
"^7.x"
,
"chai-as-promised"
:
"^7.x"
,
"chai-datetime"
:
"^1.x"
,
"chai-datetime"
:
"^1.x"
,
"chai-spies"
:
"^1.x"
,
"chai-spies"
:
"^1.x"
,
"cheerio"
:
"^1.0.0-rc.2"
,
"continuation-local-storage"
:
"^3.x"
,
"continuation-local-storage"
:
"^3.x"
,
"cross-env"
:
"^5.2.0"
,
"cross-env"
:
"^5.2.0"
,
"docdash"
:
"^1.0.0"
,
"env-cmd"
:
"^8.0.0"
,
"env-cmd"
:
"^8.0.0"
,
"esdoc"
:
"^1.1.0"
,
"esdoc"
:
"^1.1.0"
,
"esdoc-inject-style-plugin"
:
"^1.0.0"
,
"esdoc-inject-style-plugin"
:
"^1.0.0"
,
...
@@ -61,7 +59,6 @@
...
@@ -61,7 +59,6 @@
"hints"
:
"^1.x"
,
"hints"
:
"^1.x"
,
"husky"
:
"^0.14.3"
,
"husky"
:
"^0.14.3"
,
"istanbul"
:
"^0.x"
,
"istanbul"
:
"^0.x"
,
"jsdoc"
:
"^3.5.5"
,
"lcov-result-merger"
:
"^3.0.0"
,
"lcov-result-merger"
:
"^3.0.0"
,
"mocha"
:
"^5.x"
,
"mocha"
:
"^5.x"
,
"mysql2"
:
"^1.x"
,
"mysql2"
:
"^1.x"
,
...
@@ -72,8 +69,7 @@
...
@@ -72,8 +69,7 @@
"sinon"
:
"^6.3.3"
,
"sinon"
:
"^6.3.3"
,
"sinon-chai"
:
"^3.2.0"
,
"sinon-chai"
:
"^3.2.0"
,
"sqlite3"
:
"^4.0.2"
,
"sqlite3"
:
"^4.0.2"
,
"tedious"
:
"^2.x"
,
"tedious"
:
"^2.x"
"uuid-validate"
:
"^0.0.3"
},
},
"keywords"
:
[
"keywords"
:
[
"mysql"
,
"mysql"
,
...
@@ -100,7 +96,6 @@
...
@@ -100,7 +96,6 @@
"test-docker-unit"
:
"npm run test-unit"
,
"test-docker-unit"
:
"npm run test-unit"
,
"test-docker-integration"
:
"env-cmd $npm_package_options_env_cmd npm run test-integration"
,
"test-docker-integration"
:
"env-cmd $npm_package_options_env_cmd npm run test-integration"
,
"docs"
:
"esdoc && cp docs/ROUTER esdoc/ROUTER"
,
"docs"
:
"esdoc && cp docs/ROUTER esdoc/ROUTER"
,
"generate-jsdocs"
:
"node_modules/.bin/jsdoc -c jsdoc.json"
,
"teaser"
:
"node -e
\"
console.log('#'.repeat(process.env.DIALECT.length + 22) + '
\\
n# Running tests for ' + process.env.DIALECT + ' #
\\
n' + '#'.repeat(process.env.DIALECT.length + 22))
\"
"
,
"teaser"
:
"node -e
\"
console.log('#'.repeat(process.env.DIALECT.length + 22) + '
\\
n# Running tests for ' + process.env.DIALECT + ' #
\\
n' + '#'.repeat(process.env.DIALECT.length + 22))
\"
"
,
"test-unit"
:
"mocha --require scripts/mocha-bootload --globals setImmediate,clearImmediate --ui tdd --exit --check-leaks --colors -t 30000 --reporter spec
\"
test/unit/**/*.js
\"
"
,
"test-unit"
:
"mocha --require scripts/mocha-bootload --globals setImmediate,clearImmediate --ui tdd --exit --check-leaks --colors -t 30000 --reporter spec
\"
test/unit/**/*.js
\"
"
,
"test-unit-mysql"
:
"cross-env DIALECT=mysql npm run test-unit"
,
"test-unit-mysql"
:
"cross-env DIALECT=mysql npm run test-unit"
,
...
...
test/integration/instance.test.js
View file @
ba12835
...
@@ -8,7 +8,7 @@ const chai = require('chai'),
...
@@ -8,7 +8,7 @@ const chai = require('chai'),
dialect
=
Support
.
getTestDialect
(),
dialect
=
Support
.
getTestDialect
(),
config
=
require
(
__dirname
+
'/../config/config'
),
config
=
require
(
__dirname
+
'/../config/config'
),
sinon
=
require
(
'sinon'
),
sinon
=
require
(
'sinon'
),
validateUUID
=
require
(
'uuid-validate'
)
,
isUUID
=
require
(
'validator'
).
isUUID
,
current
=
Support
.
sequelize
;
current
=
Support
.
sequelize
;
describe
(
Support
.
getTestDialectTeaser
(
'Instance'
),
()
=>
{
describe
(
Support
.
getTestDialectTeaser
(
'Instance'
),
()
=>
{
...
@@ -743,8 +743,8 @@ describe(Support.getTestDialectTeaser('Instance'), () => {
...
@@ -743,8 +743,8 @@ describe(Support.getTestDialectTeaser('Instance'), () => {
it
(
'should store a valid uuid in uuidv1 and uuidv4 that conforms to the UUID v1 and v4 specifications'
,
function
()
{
it
(
'should store a valid uuid in uuidv1 and uuidv4 that conforms to the UUID v1 and v4 specifications'
,
function
()
{
const
user
=
this
.
User
.
build
({
username
:
'a user'
});
const
user
=
this
.
User
.
build
({
username
:
'a user'
});
expect
(
validateUUID
(
user
.
uuidv1
,
1
)).
to
.
be
.
true
;
expect
(
isUUID
(
user
.
uuidv
1
)).
to
.
be
.
true
;
expect
(
validate
UUID
(
user
.
uuidv4
,
4
)).
to
.
be
.
true
;
expect
(
is
UUID
(
user
.
uuidv4
,
4
)).
to
.
be
.
true
;
});
});
it
(
'should store a valid uuid if the field is a primary key named id'
,
function
()
{
it
(
'should store a valid uuid if the field is a primary key named id'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment