We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df0075 commit bd93dc3Copy full SHA for bd93dc3
src/lib/get-serve-path/get-serve-path.test.js
@@ -0,0 +1,17 @@
1
+import getServePath from '.';
2
+
3
+describe('getServePath', () => {
4
+ it('returns undefined for dir thats not a string', () => {
5
+ expect(getServePath(2)).toEqual({ serveDir: undefined });
6
+ });
7
8
+ it('returns undefined for subdir thats not a string', () => {
9
+ expect(getServePath(2, 2)).toEqual({ serveDir: undefined });
10
11
12
+ it('returns joined path for serveDir', () => {
13
+ expect(getServePath('example', 'path')).toEqual({
14
+ serveDir: 'example/path',
15
16
17
+});
0 commit comments