strong-tie/inbound-calls
0
1'use strict'2 3const { test } = require('node:test')4const toCamelCase = require('../lib/toCamelCase')5 6test('from kebab-case to camelCase', (t) => {7 t.plan(1)8 t.assert.strictEqual(toCamelCase('hello-world'), 'helloWorld')9})10 11test('from @-prefixed named imports', (t) => {12 t.plan(1)13 t.assert.strictEqual(toCamelCase('@hello/world'), 'helloWorld')14})15 16test('from @-prefixed named kebab-case to camelCase', (t) => {17 t.plan(1)18 t.assert.strictEqual(toCamelCase('@hello/my-world'), 'helloMyWorld')19})20 21test('from kebab-case to camelCase multiple words', (t) => {22 t.plan(1)23 t.assert.strictEqual(toCamelCase('hello-long-world'), 'helloLongWorld')24})25 