blob: 4f41d09b40521a1743c472eadaea9ede23151673 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import {getFilenameFromPath} from '../paths'
jest.mock('../fileExists')
describe('getFilenameFromPath', () => {
const EXAMPLE_PATH = "localhost/stoneddiscord/assets.png"
it('Should get the last value from a path', async () => {
const actual = getFilenameFromPath(EXAMPLE_PATH);
const expected = 'assets.png';
expect(actual).toBe(expected);
});
})
|