This repository was archived by the owner on Apr 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +139
-103
lines changed Expand file tree Collapse file tree 12 files changed +139
-103
lines changed Original file line number Diff line number Diff line change 6
6
steps :
7
7
- checkout
8
8
- run : npm ci
9
- - run : npm test
9
+ - run : npm test && npx codecov
Original file line number Diff line number Diff line change 1
1
/**
2
- * Return a Netsuite Record Module
2
+ * Return a Netsuite Current Record Module
3
3
*
4
- * @classDescription Record object
4
+ * @classDescription Current Record object
5
5
* @constructor
6
6
* @returns {N/Module }
7
7
*/
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Return a Netsuite HTTP Module
3
3
*
4
- * @classDescription HTTP object
5
- * @constructor
6
- * @returns {N/http }
7
4
*/
8
5
9
6
module . exports = {
Original file line number Diff line number Diff line change 1
1
/**
2
- * Return a Netsuite HTTP Module
2
+ * Return a Netsuite HTTPS Module
3
3
*
4
- * @classDescription HTTP object
5
- * @constructor
6
- * @returns {N/http }
7
4
*/
8
5
9
6
module . exports = {
Original file line number Diff line number Diff line change 7
7
<a href="https://github.com/airbnb/javascript"><img src="https://badgen.net/badge/code%20style/airbnb-base/green" /></a>
8
8
<a href="LICENSE"><img src="https://badgen.net/github/license/mycshq/ns-suitescript-mocks" /></a>
9
9
<a href="http://makeapullrequest.com"><img src="https://badgen.net/badge/PRs/Welcome/green" /></a>
10
- <a href='https://coveralls.io/github/mycsHQ/ns-suitescript-mocks?branch=master'><img src='https://coveralls.io/repos/github/mycsHQ/ns-suitescript-mocks/badge.svg?branch=master' alt='Coverage Status' /></a>
11
-
10
+ <a href="https://codecov.io/gh/mycshq/ns-suitescript-mocks"><img src="https://codecov.io/gh/mycshq/ns-suitescript-mocks/branch/master/graph/badge.svg" /></a>
12
11
</p >
13
12
<p align =" center " >
14
13
<a href="https://nodei.co/npm/ns-suitescript-mocks/"><img src="https://nodei.co/npm/ns-suitescript-mocks.png" /></a>
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Tests for a Netsuite format Module
3
+ *
4
+ */
5
+
6
+ const fileUnderTest = require ( '../../N/currentRecord' ) ;
7
+
8
+ describe ( 'Testing currentRecord module' , ( ) => {
9
+ it ( 'Should return object with properies available in Netsuite\'s current record module ' , ( ) => {
10
+ const expected = {
11
+ attach : expect . any ( Function ) ,
12
+ create : expect . any ( Function ) ,
13
+ copy : expect . any ( Function ) ,
14
+ delete : expect . any ( Function ) ,
15
+ detach : expect . any ( Function ) ,
16
+ get : expect . any ( Function ) ,
17
+ load : expect . any ( Function ) ,
18
+ submitFields : expect . any ( Function ) ,
19
+ transform : expect . any ( Function ) ,
20
+ Type : expect . any ( Object ) ,
21
+ } ;
22
+ expect ( fileUnderTest ) . toMatchObject ( expected ) ;
23
+ } ) ;
24
+ } ) ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Tests for a Netsuite https Module
3
+ *
4
+ */
5
+
6
+ const fileUnderTest = require ( '../../N/https' ) ;
7
+
8
+ describe ( 'Testing http module' , ( ) => {
9
+ it ( 'Should return object with properies available in Netsuite\'s https module ' , ( ) => {
10
+ const expected = {
11
+ post : expect . any ( Function ) ,
12
+ get : expect . any ( Function ) ,
13
+ delete : expect . any ( Function ) ,
14
+ } ;
15
+ expect ( fileUnderTest ) . toMatchObject ( expected ) ;
16
+ } ) ;
17
+ } ) ;
Original file line number Diff line number Diff line change 1
-
2
-
3
1
/**
4
2
* Tests for a request function
5
3
*
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const fs = require('fs');
10
10
const rawRecord = require ( '../Utils/record' ) ;
11
11
const logModule = require ( '../N/log' ) ;
12
12
const Request = require ( '../Utils/request' ) ;
13
+
13
14
const external = { } ;
14
15
let extendedModules = { } ;
15
16
@@ -20,7 +21,7 @@ global.mapModules = {
20
21
// Utils
21
22
rawRecord,
22
23
logModule,
23
- Request
24
+ Request,
24
25
} ;
25
26
26
27
/**
Original file line number Diff line number Diff line change
1
+ codecov :
2
+ notify :
3
+ require_ci_to_pass : yes
4
+
5
+ coverage :
6
+ precision : 2
7
+ round : down
8
+ range : " 70...100"
9
+
10
+ status :
11
+ project : yes
12
+ patch : yes
13
+ changes : no
14
+
15
+ parsers :
16
+ gcov :
17
+ branch_detection :
18
+ conditional : yes
19
+ loop : yes
20
+ method : no
21
+ macro : no
22
+
23
+ comment :
24
+ layout : " header, diff"
25
+ behavior : default
26
+ require_changes : no
You can’t perform that action at this time.
0 commit comments