mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
merge: Add Upper (#862)
This commit is contained in:
9
String/test/Upper.test.js
Normal file
9
String/test/Upper.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
import { upper } from '../Upper'
|
||||
|
||||
describe('Upper', () => {
|
||||
it('return uppercase strings', () => {
|
||||
expect(upper('hello')).toBe('HELLO')
|
||||
expect(upper('WORLD')).toBe('WORLD')
|
||||
expect(upper('hello_WORLD')).toBe('HELLO_WORLD')
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user