File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,26 @@ describe("constants", () => {
36
36
} )
37
37
} )
38
38
describe ( "version" , ( ) => {
39
+
40
+ beforeAll ( ( ) => {
41
+ // create tmpdir and add package.json
42
+ } )
43
+
44
+ afterAll ( ( ) => {
45
+ // clean up
46
+ } )
39
47
it ( "should return the package.json version" , ( ) => {
40
48
// Source: https://gist.github.com/jhorsman/62eeea161a13b80e39f5249281e17c39#gistcomment-2896416
41
49
const validSemVar = new RegExp ( "^(0|[1-9]d*).(0|[1-9]d*).(0|[1-9]d*)" )
42
50
const isValidSemVar = validSemVar . test ( version )
43
51
expect ( version ) . not . toBe ( null )
44
52
expect ( isValidSemVar ) . toBe ( true )
45
53
} )
54
+ it ( "should return 'development' if package.json version is missing" , ( ) => {
55
+ // TODO
56
+
57
+ expect ( version ) . toBe ( "development" )
58
+ } )
46
59
} )
47
60
48
61
describe ( "commit" , ( ) => {
You can’t perform that action at this time.
0 commit comments