完整代码加修复数据库连接字符串!!!
This commit is contained in:
24
node_modules/fastify-plugin/test/toCamelCase.test.js
generated
vendored
Normal file
24
node_modules/fastify-plugin/test/toCamelCase.test.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('node:test')
|
||||
const toCamelCase = require('../lib/toCamelCase')
|
||||
|
||||
test('from kebab-case to camelCase', (t) => {
|
||||
t.plan(1)
|
||||
t.assert.strictEqual(toCamelCase('hello-world'), 'helloWorld')
|
||||
})
|
||||
|
||||
test('from @-prefixed named imports', (t) => {
|
||||
t.plan(1)
|
||||
t.assert.strictEqual(toCamelCase('@hello/world'), 'helloWorld')
|
||||
})
|
||||
|
||||
test('from @-prefixed named kebab-case to camelCase', (t) => {
|
||||
t.plan(1)
|
||||
t.assert.strictEqual(toCamelCase('@hello/my-world'), 'helloMyWorld')
|
||||
})
|
||||
|
||||
test('from kebab-case to camelCase multiple words', (t) => {
|
||||
t.plan(1)
|
||||
t.assert.strictEqual(toCamelCase('hello-long-world'), 'helloLongWorld')
|
||||
})
|
||||
Reference in New Issue
Block a user