Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 2b0136a

Browse files
committed
test the bundle in specs
1 parent ebdeaf3 commit 2b0136a

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"private": true,
1212
"scripts": {
13+
"test": "atom --test spec",
1314
"clean": "shx rm -rf dist",
1415
"debug": "npm run clean && shx cp -r lib dist && coffee -c -M -o dist lib && env BABEL_ENV=development babel dist -d dist",
1516
"dev": "npm run clean && env NODE_ENV=development env BABEL_ENV=production rollup -c -w",

spec/default-file-icons-spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fs = require 'fs-plus'
22
path = require 'path'
33
temp = require('temp').track()
44

5-
fileIcons = require '../lib/default-file-icons'
5+
fileIcons = require '../dist/main.js' # '../lib/default-file-icons'
66

77
describe 'DefaultFileIcons', ->
88
it 'defaults to text', ->

spec/file-icons-spec.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
DefaultFileIcons = require '../lib/default-file-icons'
2-
getIconServices = require '../lib/get-icon-services'
1+
DefaultFileIcons = require '../dist/main.js' # '../lib/default-file-icons'
2+
getIconServices = require '../dist/main.js' # '../lib/get-icon-services'
33
{Disposable} = require 'atom'
44

55
describe 'IconServices', ->

spec/helpers-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const {it, fit, ffit, beforeEach, afterEach} = require('./async-spec-helpers') /
22

33
const path = require('path')
44

5-
const helpers = require('../lib/helpers')
5+
const helpers = require('../dist/main.js') // '../lib/helpers'
66

77
describe('Helpers', () => {
88
describe('repoForPath', () => {

spec/tree-view-package-spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = require 'path'
44
temp = require('temp').track()
55
os = require 'os'
66
{remote, shell} = require 'electron'
7-
Directory = require '../lib/directory'
7+
Directory = require '../dist/main.js' #'../lib/directory'
88
eventHelpers = require "./event-helpers"
99

1010
waitForPackageActivation = ->

spec/tree-view-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const TreeView = require('../lib/tree-view')
1+
const TreeView = require('../dist/main.js') // require('../lib/tree-view')
22

33
describe('TreeView', () => {
44
describe('serialization', () => {

0 commit comments

Comments
 (0)