Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 0f92945

Browse files
committed
chore: fix tests
1 parent b3a1933 commit 0f92945

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@netlify/netlify-functions-js",
3+
"main": "./src/main.js",
34
"private": true,
45
"version": "1.0.0",
56
"description": "JavaScript utilities for Netlify Functions",
@@ -29,7 +30,7 @@
2930
},
3031
"ava": {
3132
"files": [
32-
"tests/*.js"
33+
"test/*.js"
3334
],
3435
"verbose": true
3536
},

src/main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
'use strict'
1+
const { builderFunction } = require('./lib/builder_functions')
22

3-
const mainFunction = function () {
4-
return true
5-
}
6-
7-
module.exports = { mainFunction }
3+
module.exports = { builderFunction }

test/builder_functions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const test = require('ava')
22

33
const { builderFunction } = require('../src/lib/builder_functions')
4+
45
const { invokeLambda } = require('./helpers/main')
56

67
const METADATA_OBJECT = { metadata: { version: 1, behavior: { name: 'builder' } } }

0 commit comments

Comments
 (0)