                 }
             }
         }
-    }"""
+    }'''
 
     firstKernelSpec = JSON.parse firstKernelSpecString
     secondKernelSpec = JSON.parse secondKernelSpecString

            fileNumberAfter = fs.readdirSync(fileStoragePath).length
            expect(fileNumberAfter).toEqual(fileNumberBefore + 1)

describe "Port finder", ->
    it "should find a free port", ->
        portfinder.find (port) ->
            expect(port).toMatch(/\d{1,}/)
    it "should find 3 free ports", ->
        portfinder.findMany 3, (ports) ->
            expect(ports.length).toEqual(3)
            expect(ports[0]).toMatch(/\d{1,}/)
            expect(ports[1]).toMatch(/\d{1,}/)
            expect(ports[2]).toMatch(/\d{1,}/)
    it "should find 2 additional free ports", ->
        portfinder.findManyHelper 2, [60000], (ports) ->
            expect(ports.length).toEqual(3)
            expect(ports[0]).toEqual(60000)
            expect(ports[1]).toMatch(/\d{1,}/)
            expect(ports[2]).toMatch(/\d{1,}/)

describe "Kernel manager", ->
    firstKernelSpecString = """{
        "kernelspecs": {
            "ijavascript": {
                "spec": {

                "resource_dir": "/home/user/node_modules/ijavascript/images"
            }
        }
    }'''
    secondKernelSpecString = '''{
        "kernelspecs": {
            "python2": {
                "resource_dir": "/usr/local/lib/python2.7/site-packages/ipykernel/resources",
