Change the names in specs
This commit is contained in:
parent
2d8d328f02
commit
1200d641b8
5 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "atom-shell",
|
"name": "electron",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"asar": "0.2.2",
|
"asar": "0.2.2",
|
||||||
"coffee-script": "~1.7.1",
|
"coffee-script": "~1.7.1",
|
||||||
|
|
|
@ -15,11 +15,11 @@ describe 'app module', ->
|
||||||
|
|
||||||
describe 'app.getName()', ->
|
describe 'app.getName()', ->
|
||||||
it 'returns the name field of package.json', ->
|
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)', ->
|
describe 'app.setName(name)', ->
|
||||||
it 'overrides the name', ->
|
it 'overrides the name', ->
|
||||||
assert.equal app.getName(), 'Electron Test App'
|
assert.equal app.getName(), 'Electron Test'
|
||||||
app.setName 'test-name'
|
app.setName 'test-name'
|
||||||
assert.equal app.getName(), 'test-name'
|
assert.equal app.getName(), 'test-name'
|
||||||
app.setName 'Electron Test App'
|
app.setName 'Electron Test App'
|
||||||
|
|
|
@ -27,8 +27,8 @@ describe 'crash-reporter module', ->
|
||||||
process.throwDeprecation = false
|
process.throwDeprecation = false
|
||||||
form.parse req, (error, fields, files) ->
|
form.parse req, (error, fields, files) ->
|
||||||
process.throwDeprecation = true
|
process.throwDeprecation = true
|
||||||
assert.equal fields['prod'], 'Atom-Shell'
|
assert.equal fields['prod'], 'Electron'
|
||||||
assert.equal fields['ver'], process.versions['atom-shell']
|
assert.equal fields['ver'], process.versions['electron']
|
||||||
assert.equal fields['process_type'], 'renderer'
|
assert.equal fields['process_type'], 'renderer'
|
||||||
assert.equal fields['platform'], process.platform
|
assert.equal fields['platform'], process.platform
|
||||||
assert.equal fields['extra1'], 'extra1'
|
assert.equal fields['extra1'], 'extra1'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "atom-shell-specs",
|
"name": "electron-test",
|
||||||
"productName": "Electron Test App",
|
"productName": "Electron Test",
|
||||||
"main": "static/main.js",
|
"main": "static/main.js",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -137,7 +137,7 @@ app.on('ready', function() {
|
||||||
require('protocol').registerProtocol('test-if-crashes', function() {});
|
require('protocol').registerProtocol('test-if-crashes', function() {});
|
||||||
|
|
||||||
window = new BrowserWindow({
|
window = new BrowserWindow({
|
||||||
title: 'atom-shell tests',
|
title: 'Electron Tests',
|
||||||
show: false,
|
show: false,
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue