File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ const gatherFiles = require('./scripts/gather-files');
3
3
const iconSvgPath = path . join ( __dirname , './icons' ) ;
4
4
5
5
module . exports = {
6
- layouts : {
7
- all : require ( './layouts/all.json' )
8
- } ,
6
+ layouts : require ( './layouts/all.json' ) ,
9
7
svgArray : gatherFiles ( iconSvgPath )
10
8
} ;
Original file line number Diff line number Diff line change @@ -2,11 +2,17 @@ const fs = require('fs');
2
2
const test = require ( 'tape' ) ;
3
3
const path = require ( 'path' ) ;
4
4
const xml2js = require ( 'xml2js' ) ;
5
+ const maki = require ( '../' ) ;
5
6
const makiLayoutAll = require ( '../layouts/all' ) ;
6
7
7
8
const parseString = xml2js . parseString ;
8
9
const svgPath = path . join ( __dirname , '../icons/' ) ;
9
10
11
+ test ( 'index' , function ( t ) {
12
+ t . deepEqual ( makiLayoutAll . all , maki . layouts . all , 'exports layout.all' ) ;
13
+ t . end ( ) ;
14
+ } ) ;
15
+
10
16
test ( 'all.json layout ' , function ( t ) {
11
17
fs . readdir ( svgPath , function ( err , files ) {
12
18
var svgFiles = files . filter ( function ( file ) {
You can’t perform that action at this time.
0 commit comments