Change the names in specs

This commit is contained in:
Cheng Zhao 2015-04-14 15:59:45 +08:00
parent 2d8d328f02
commit 1200d641b8
5 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
{
"name": "atom-shell",
"name": "electron",
"devDependencies": {
"asar": "0.2.2",
"coffee-script": "~1.7.1",

View file

@ -15,11 +15,11 @@ describe 'app module', ->
describe 'app.getName()', ->
it 'returns the name field of package.json', ->
assert.equal app.getName(), 'Electron Test App'
assert.equal app.getName(), 'Electron Test'
describe 'app.setName(name)', ->
it 'overrides the name', ->
assert.equal app.getName(), 'Electron Test App'
assert.equal app.getName(), 'Electron Test'
app.setName 'test-name'
assert.equal app.getName(), 'test-name'
app.setName 'Electron Test App'

View file

@ -27,8 +27,8 @@ describe 'crash-reporter module', ->
process.throwDeprecation = false
form.parse req, (error, fields, files) ->
process.throwDeprecation = true
assert.equal fields['prod'], 'Atom-Shell'
assert.equal fields['ver'], process.versions['atom-shell']
assert.equal fields['prod'], 'Electron'
assert.equal fields['ver'], process.versions['electron']
assert.equal fields['process_type'], 'renderer'
assert.equal fields['platform'], process.platform
assert.equal fields['extra1'], 'extra1'

View file

@ -1,6 +1,6 @@
{
"name": "atom-shell-specs",
"productName": "Electron Test App",
"name": "electron-test",
"productName": "Electron Test",
"main": "static/main.js",
"version": "0.1.0",
"devDependencies": {

View file

@ -137,7 +137,7 @@ app.on('ready', function() {
require('protocol').registerProtocol('test-if-crashes', function() {});
window = new BrowserWindow({
title: 'atom-shell tests',
title: 'Electron Tests',
show: false,
width: 800,
height: 600,