 
     func testReceivedValuesWithDDLogLevelAll() {
 
-        var reveicedValues = [DDLogMessage]()
+        var receivedValue = [DDLogMessage]()
 
         DDLog.sharedInstance.messagePublisher()
-            .sink(receiveValue: { reveicedValues.append($0) })
+            .sink(receiveValue: { receivedValue.append($0) })
             .store(in: &self.subscriptions)
 
         DDLogError("Error")


        DDLog.flushLog()

        let messages = reveicedValues.map { $0.message }
        XCTAssertEqual(messages, ["Error",
                                  "Warn",
                                  "Info",
                                  "Debug",
                                  "Verbose"])

        let levels = reveicedValues.map { $0.flag }
        XCTAssertEqual(levels, [.error,
                                .warning,
                                .info,


    func testReceivedValuesWithDDLogLevelWarning() {

        var receivedValue = [DDLogMessage]()

        DDLog.sharedInstance.messagePublisher(with: .warning)
            .sink(receiveValue: { receivedValue.append($0) })
            .store(in: &self.subscriptions)

        DDLogError("Error")
