         expect(url).toBe("/#{project_id}/raw/.smc/jupyter")
 
     it 'gets server url with a base url', ->
-        global.window = {smc_base_url: '/the/base/url'}
+        global.window = {app_base_url: '/the/base/url'}
         url = server_urls.get_server_url(project_id)
         expect(url).toBe("/the/base/url/#{project_id}/raw/.smc/jupyter")
 

        expect(url).toBe("/#{project_id}/raw/.smc/jupyter/blobs/a.png?sha1=#{sha1}")

    it 'gets server url with a base url', ->
        global.window = {smc_base_url: '/the/base/url'}
        extension = 'png'
        sha1 = '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
        url = server_urls.get_blob_url(project_id, extension, sha1)

        expect(url).toBe("/#{project_id}/raw/.smc/jupyter/kernelspecs/python2/logo-64x64.png")

    it 'gets server url with a base url', ->
        global.window = {app_base_url: '/the/base/url'}
        kernel = 'python2'
        url = server_urls.get_logo_url(project_id, kernel)
        expect(url).toBe("/the/base/url/#{project_id}/raw/.smc/jupyter/kernelspecs/python2/logo-64x64.png")
